]> BookStack Code Mirror - bookstack/blobdiff - app/Services/ActivityService.php
Adds overflow:auto to popup content to allow it to scroll in lower res.
[bookstack] / app / Services / ActivityService.php
index f6fea33a191ee2d1e02b7e63d394653d8b53322e..2368ba10aebd73a936ad39684be86d2a8e65241c 100644 (file)
@@ -19,7 +19,7 @@ class ActivityService
     {
         $this->activity = $activity;
         $this->permissionService = $permissionService;
-        $this->user = auth()->user();
+        $this->user = user();
     }
 
     /**
@@ -114,7 +114,7 @@ class ActivityService
         
         $activity = $this->permissionService
             ->filterRestrictedEntityRelations($query, 'activities', 'entity_id', 'entity_type')
-            ->orderBy('created_at', 'desc')->skip($count * $page)->take($count)->get();
+            ->orderBy('created_at', 'desc')->with(['entity', 'user.avatar'])->skip($count * $page)->take($count)->get();
 
         return $this->filterSimilar($activity);
     }