Merge pull request #625 from pixelfed/frontend-ui-refactor

Update StatusTransformer
This commit is contained in:
daniel 2018-12-06 20:07:41 -07:00 committed by GitHub
commit 2feb107154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
'in_reply_to_id' => $status->in_reply_to_id,
'in_reply_to_account_id' => $status->in_reply_to_profile_id,
'reblog' => $status->reblog_of_id || $status->in_reply_to_id ? $this->transform($status->parent()) : null,
'content' => "$status->rendered",
'content' => $status->rendered ?? $status->caption,
'created_at' => $status->created_at->format('c'),
'emojis' => [],
'reblogs_count' => $status->shares()->count(),