From 4f46f39f1e801cd6135cdbaaa0f58e377fb00428 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 11 Feb 2019 17:37:29 -0700 Subject: [PATCH 1/2] Update InternalApiController --- app/Http/Controllers/InternalApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index 8fc7409d9..45738baa6 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/app/Http/Controllers/InternalApiController.php @@ -220,6 +220,7 @@ class InternalApiController extends Controller $following = array_merge($following, $filters); $posts = Status::select('id', 'caption', 'profile_id') + ->whereNull('uri') ->whereHas('media') ->whereHas('profile', function($q) { return $q->whereNull('status'); From f3c16ceacb255d9b0fd576b303f23780138d0229 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 11 Feb 2019 17:39:03 -0700 Subject: [PATCH 2/2] Update PublicApiController --- app/Http/Controllers/PublicApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index a6323b710..caeb41eb3 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -400,7 +400,7 @@ class PublicApiController extends Controller $only_media = $request->only_media ?? false; $user = Auth::user(); $account = Profile::findOrFail($id); - $statuses = $account->statuses()->getQuery(); + $statuses = $account->statuses()->getQuery()->whereNull('uri'); if($only_media == true) { $statuses = $statuses ->whereHas('media')