Explorar o código

Update InternalApiController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
a0fdee5a72
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      app/Http/Controllers/InternalApiController.php

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

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