浏览代码

Update InternalApiController

Daniel Supernault 6 年之前
父节点
当前提交
a0fdee5a72
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      app/Http/Controllers/InternalApiController.php

+ 1 - 4
app/Http/Controllers/InternalApiController.php

@@ -113,10 +113,7 @@ class InternalApiController extends Controller
                 'type'
               )
               ->whereNull('uri')
-              ->whereHas('media')
-              ->whereHas('profile', function($q) {
-                return $q->whereNull('status');
-              })
+              ->whereIn('type', ['photo','photo:album', 'video'])
               ->whereIsNsfw(false)
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)