1
0
Fork 0

Update StatusTransformer.php

This commit is contained in:
Shlee 2022-05-21 16:06:56 +09:30 committed by GitHub
parent d5225d9197
commit af3d313047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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' => [],