浏览代码

Update ProfileController

Daniel Supernault 6 年之前
父节点
当前提交
5b5a9d0a3a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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')
               ->whereHas('media')
               ->whereNull('in_reply_to_id')
               ->whereNull('in_reply_to_id')
               ->whereNull('reblog_of_id')
               ->whereNull('reblog_of_id')
+              ->whereIn('visibility', ['public', 'unlisted'])
               ->orderBy('created_at', 'desc')
               ->orderBy('created_at', 'desc')
               ->withCount(['comments', 'likes'])
               ->withCount(['comments', 'likes'])
               ->simplePaginate(21);
               ->simplePaginate(21);