Browse Source

Update TimelineController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
679a566466

+ 1 - 0
app/Http/Controllers/TimelineController.php

@@ -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);