1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update StatusStatelessTransformer.php

This commit is contained in:
Shlee 2022-05-21 16:09:19 +09:30 committed by GitHub
parent af3d313047
commit 347f1a6d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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