Browse Source

Update InternalApiController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
a0fdee5a72
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  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)