]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/ActivityService.php
Applied another round of static analysis updates
[bookstack] / app / Actions / ActivityService.php
index 33ed44b32efa0dd64715af5a227e90a642cc0574..983c1a603c70b913d89a0392c74d31a11c438de2 100644 (file)
@@ -105,10 +105,10 @@ class ActivityService
         $queryIds = [$entity->getMorphClass() => [$entity->id]];
 
         if ($entity instanceof Book) {
-            $queryIds[(new Chapter())->getMorphClass()] = $entity->chapters()->visible()->pluck('id');
+            $queryIds[(new Chapter())->getMorphClass()] = $entity->chapters()->scopes('visible')->pluck('id');
         }
         if ($entity instanceof Book || $entity instanceof Chapter) {
-            $queryIds[(new Page())->getMorphClass()] = $entity->pages()->visible()->pluck('id');
+            $queryIds[(new Page())->getMorphClass()] = $entity->pages()->scopes('visible')->pluck('id');
         }
 
         $query = $this->activity->newQuery();