From af3d3130471d4e4f21f1915d36b7d406fe7da397 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 21 May 2022 16:06:56 +0930 Subject: [PATCH] Update StatusTransformer.php --- app/Transformer/Api/StatusTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/StatusTransformer.php b/app/Transformer/Api/StatusTransformer.php index c5657c827..36aedb20e 100644 --- a/app/Transformer/Api/StatusTransformer.php +++ b/app/Transformer/Api/StatusTransformer.php @@ -56,7 +56,7 @@ class StatusTransformer extends Fractal\TransformerAbstract 'mentions' => StatusMentionService::get($status->id), 'pf_type' => $status->type ?? $status->setType(), 'reply_count' => (int) $status->reply_count, - 'comments_disabled' => $status->comments_disabled ? true : false, + 'comments_disabled' => (bool)$status->comments_disabled, 'thread' => false, 'replies' => [], 'parent' => [],