Преглед на файлове

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)