Cut down homepage queries a little
This commit is contained in:
parent
565033e0d4
commit
a11d5245ec
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class ActivityService
|
|||
{
|
||||
$activityList = $this->permissionService
|
||||
->filterRestrictedEntityRelations($this->activity, 'activities', 'entity_id', 'entity_type')
|
||||
->orderBy('created_at', 'desc')->skip($count * $page)->take($count)->get();
|
||||
->orderBy('created_at', 'desc')->with('user', 'entity')->skip($count * $page)->take($count)->get();
|
||||
|
||||
return $this->filterSimilar($activityList);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue