X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ab4c5a55b8305a125ad8610a55361d976541ec60..refs/pull/2734/head:/app/Actions/ViewService.php diff --git a/app/Actions/ViewService.php b/app/Actions/ViewService.php index f04384536..a4e620d4b 100644 --- a/app/Actions/ViewService.php +++ b/app/Actions/ViewService.php @@ -96,6 +96,7 @@ class ViewService /** @var Entity $instance */ foreach ($this->entityProvider->all() as $name => $instance) { $items = $instance::visible()->withLastView() + ->having('last_viewed_at', '>', 0) ->orderBy('last_viewed_at', 'desc') ->skip($count * ($page - 1)) ->take($count)