From 0ccf9b0db08c87eca6bb18a849416a2a5c7b1752 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 3 Apr 2019 00:03:40 -0600 Subject: [PATCH] Update PublicApiController --- app/Http/Controllers/PublicApiController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 2d6e4a770..7350b2d51 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -248,6 +248,8 @@ class PublicApiController extends Controller 'is_nsfw', 'scope', 'local', + 'reply_count', + 'comments_disabled', 'created_at', 'updated_at' )->where('id', $dir, $id) @@ -274,6 +276,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']) @@ -348,6 +352,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']) @@ -375,6 +381,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'])