From 3109911887775fb628c96287973ee0642145aab6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Dec 2018 21:03:37 -0700 Subject: [PATCH] Update InternalApiController --- app/Http/Controllers/InternalApiController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index fb4cdcde9..e2c6b24ca 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/app/Http/Controllers/InternalApiController.php @@ -112,6 +112,7 @@ class InternalApiController extends Controller $people = Profile::select('id', 'name', 'username') ->with('avatar') + ->whereNull('status') ->orderByRaw('rand()') ->whereHas('statuses') ->whereNull('domain') @@ -206,6 +207,9 @@ class InternalApiController extends Controller $posts = Status::select('id', 'caption', 'profile_id') ->whereHas('media') + ->whereHas('profile', function($q) { + return $q->whereNull('status'); + }) ->whereIsNsfw(false) ->whereVisibility('public') ->whereNotIn('profile_id', $following)