From a0fdee5a72c5e1328878ac0f1f513d2a36e0fc1e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 4 Jun 2019 21:46:53 -0600 Subject: [PATCH] Update InternalApiController --- app/Http/Controllers/InternalApiController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index 5ed7bbafe..6c8e4befa 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/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)