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']) diff --git a/public/js/timeline.js b/public/js/timeline.js index 4c7e08cb4..6d0f29de2 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index c73f8b5c9..24c2d3340 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index fd902e2f6..0ad6a84b9 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -85,7 +85,7 @@

-

+

@@ -100,7 +100,7 @@

-
+

{{reply.account.username}} @@ -593,7 +593,7 @@ }, commentFocus(status, $event) { - if(this.replyId == status.id) { + if(this.replyId == status.id || status.comments_disabled) { return; } this.replies = {};