]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/ViewService.php
Extend /users API endpoint
[bookstack] / app / Actions / ViewService.php
index f04384536ec8586a7a15153523b0196a1f3c3d95..a4e620d4be9dfd2761863bc784a5ef0a798f5f3a 100644 (file)
@@ -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)