1
0
Fork 0

Update TimelineController

This commit is contained in:
Daniel Supernault 2018-10-09 19:23:42 -06:00
parent 614b951c5e
commit 679a566466
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class TimelineController extends Controller
->pluck('filterable_id'); ->pluck('filterable_id');
$timeline = Status::whereIn('profile_id', $following) $timeline = Status::whereIn('profile_id', $following)
->whereNotIn('profile_id', $filtered) ->whereNotIn('profile_id', $filtered)
->whereVisibility('public')
->orderBy('created_at', 'desc') ->orderBy('created_at', 'desc')
->withCount(['comments', 'likes']) ->withCount(['comments', 'likes'])
->simplePaginate(20); ->simplePaginate(20);