Преглед изворни кода

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')
         $posts = Status::select('id', 'caption', 'profile_id')
           ->whereHas('media')
           ->whereHas('media')
-          ->whereHas('profile', function($q) {
-            $q->where('is_private', false);
-          })
           ->whereIsNsfw(false)
           ->whereIsNsfw(false)
           ->whereVisibility('public')
           ->whereVisibility('public')
           ->whereNotIn('profile_id', $following)
           ->whereNotIn('profile_id', $following)