From e01dff45c5b8bea256a04d22edcdb5b89d8906b4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 15 Oct 2019 21:49:37 -0600 Subject: [PATCH] Update PublicApiController, fix mixed albums not appearing on timelines --- app/Http/Controllers/PublicApiController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 64faa05e1..4003615ec 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -281,7 +281,7 @@ class PublicApiController extends Controller 'updated_at' )->where('id', $dir, $id) ->with('profile', 'hashtags', 'mentions') - ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->whereLocal(true) ->whereNotIn('profile_id', $filtered) ->whereVisibility('public') @@ -309,7 +309,7 @@ class PublicApiController extends Controller 'likes_count', 'reblogs_count', 'updated_at' - )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->with('profile', 'hashtags', 'mentions') ->whereLocal(true) ->whereNotIn('profile_id', $filtered) @@ -392,7 +392,7 @@ class PublicApiController extends Controller 'reblogs_count', 'created_at', 'updated_at' - )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->with('profile', 'hashtags', 'mentions') ->where('id', $dir, $id) ->whereIn('profile_id', $following) @@ -421,7 +421,7 @@ class PublicApiController extends Controller 'reblogs_count', 'created_at', 'updated_at' - )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) ->with('profile', 'hashtags', 'mentions') ->whereIn('profile_id', $following) ->whereNotIn('profile_id', $filtered)