]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/BookController.php
Fixed OIDC Logout
[bookstack] / app / Entities / Controllers / BookController.php
index 3ce71c38aab998b6731d31d8e042fb37ce45f025..55d28c6847e32a1227cb4663902e3388fbb27524 100644 (file)
@@ -5,7 +5,7 @@ namespace BookStack\Entities\Controllers;
 use BookStack\Activity\ActivityQueries;
 use BookStack\Activity\ActivityType;
 use BookStack\Activity\Models\View;
-use BookStack\Activity\Tools\UserWatchOptions;
+use BookStack\Activity\Tools\UserEntityWatchOptions;
 use BookStack\Entities\Models\Bookshelf;
 use BookStack\Entities\Repos\BookRepo;
 use BookStack\Entities\Tools\BookContents;
@@ -139,7 +139,7 @@ class BookController extends Controller
             'current'           => $book,
             'bookChildren'      => $bookChildren,
             'bookParentShelves' => $bookParentShelves,
-            'watchOptions'      => new UserWatchOptions(user()),
+            'watchOptions'      => new UserEntityWatchOptions(user(), $book),
             'activity'          => $activities->entityActivity($book, 20, 1),
             'referenceCount'    => $this->referenceFetcher->getPageReferenceCountToEntity($book),
         ]);