mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Merge pull request #3511 from shleeable/patch-5
Update StatusTransformer.php/StatusStatelessTransformer.php
This commit is contained in:
commit
6704e43af8
2 changed files with 2 additions and 2 deletions
|
@ -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' => [],
|
||||
|
|
|
@ -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' => [],
|
||||
|
|
Loading…
Reference in a new issue