From 08f492bd3db748e1066e824449adfcf660a73169 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 21 Jul 2021 01:19:53 -0600 Subject: [PATCH] Update PublicApiController, remove text only posts --- app/Http/Controllers/PublicApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index d7c960ba3..bf94e2552 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -304,7 +304,7 @@ class PublicApiController extends Controller 'local' ) ->where('id', $dir, $id) - ->whereIn('type', ['text', 'photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->whereNotIn('profile_id', $filtered) ->whereLocal(true) ->whereScope('public') @@ -338,7 +338,7 @@ class PublicApiController extends Controller 'reblogs_count', 'updated_at' ) - ->whereIn('type', ['text', 'photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->whereNotIn('profile_id', $filtered) ->with('profile', 'hashtags', 'mentions') ->whereLocal(true)