Browse Source

Update ProfileController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
5b5a9d0a3a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Http/Controllers/ProfileController.php

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

@@ -62,6 +62,7 @@ class ProfileController extends Controller
               ->whereHas('media')
               ->whereNull('in_reply_to_id')
               ->whereNull('reblog_of_id')
+              ->whereIn('visibility', ['public', 'unlisted'])
               ->orderBy('created_at', 'desc')
               ->withCount(['comments', 'likes'])
               ->simplePaginate(21);