From a0349ec828c35498643adf0b8ef085d071a9ccc7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 8 Apr 2019 20:42:14 -0600 Subject: [PATCH] Update PublicApiController, fix network timeline bug --- app/Http/Controllers/PublicApiController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 31dc9d7f2..c764f27cd 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -449,9 +449,12 @@ class PublicApiController extends Controller 'is_nsfw', 'scope', 'local', + 'reply_count', + 'comments_disabled', 'created_at', 'updated_at' )->where('id', $dir, $id) + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) ->whereNotIn('profile_id', $filtered) ->whereNull('in_reply_to_id') ->whereNull('reblog_of_id') @@ -472,6 +475,8 @@ class PublicApiController extends Controller 'is_nsfw', 'scope', 'local', + 'reply_count', + 'comments_disabled', 'created_at', 'updated_at' )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])