forked from mirror/pixelfed
Update discover controller
This commit is contained in:
parent
809423914f
commit
5ab2fe1090
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ class DiscoverController extends Controller
|
||||||
->whereVisibility('public')
|
->whereVisibility('public')
|
||||||
->where('profile_id', '!=', $pid)
|
->where('profile_id', '!=', $pid)
|
||||||
->whereNotIn('profile_id', $following)
|
->whereNotIn('profile_id', $following)
|
||||||
|
->withCount(['comments', 'likes'])
|
||||||
->orderBy('created_at', 'desc')
|
->orderBy('created_at', 'desc')
|
||||||
->simplePaginate(21);
|
->simplePaginate(21);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue