From 347f1a6d53d2d346a67cfc6fab6bb15c4c87b273 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 21 May 2022 16:09:19 +0930 Subject: [PATCH] Update StatusStatelessTransformer.php --- app/Transformer/Api/StatusStatelessTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/StatusStatelessTransformer.php b/app/Transformer/Api/StatusStatelessTransformer.php index f1b194b9c..88196613e 100644 --- a/app/Transformer/Api/StatusStatelessTransformer.php +++ b/app/Transformer/Api/StatusStatelessTransformer.php @@ -53,7 +53,7 @@ class StatusStatelessTransformer 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' => [],