瀏覽代碼

Update InternalApiController

Daniel Supernault 6 年之前
父節點
當前提交
cd89925c45
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      app/Http/Controllers/InternalApiController.php

+ 0 - 3
app/Http/Controllers/InternalApiController.php

@@ -146,9 +146,6 @@ class InternalApiController extends Controller
 
         $posts = Status::select('id', 'caption', 'profile_id')
           ->whereHas('media')
-          ->whereHas('profile', function($q) {
-            $q->where('is_private', false);
-          })
           ->whereIsNsfw(false)
           ->whereVisibility('public')
           ->whereNotIn('profile_id', $following)