]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/HomeController.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / app / Http / Controllers / HomeController.php
index df810a3cfe3b7d23e0ffb4532f9ab864b603e61f..9e66a064077d94749bdf99a2c0e8a9eecdd45bf2 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace BookStack\Http\Controllers;
 
-use Activity;
+use BookStack\Actions\ActivityQueries;
 use BookStack\Entities\Models\Book;
 use BookStack\Entities\Models\Page;
 use BookStack\Entities\Queries\RecentlyViewed;
@@ -16,9 +16,9 @@ class HomeController extends Controller
     /**
      * Display the homepage.
      */
-    public function index()
+    public function index(ActivityQueries $activities)
     {
-        $activity = Activity::latest(10);
+        $activity = $activities->latest(10);
         $draftPages = [];
 
         if ($this->isSignedIn()) {