mirror of https://github.com/pixelfed/pixelfed.git
Update discover controller
This commit is contained in:
parent
809423914f
commit
5ab2fe1090
|
@ -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 New Issue