mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update API Transformers
This commit is contained in:
parent
1ff7ba909e
commit
a6bf535dbc
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
|
|||
'in_reply_to_account_id' => $status->in_reply_to_profile_id,
|
||||
'reblog' => null,
|
||||
'content' => $status->rendered ?? $status->caption,
|
||||
'created_at' => $status->created_at->format('c'),
|
||||
'created_at' => $status->created_at->toISOString(),
|
||||
'emojis' => [],
|
||||
'reblogs_count' => $status->shares()->count(),
|
||||
'favourites_count' => $status->likes()->count(),
|
||||
|
|
|
@ -23,7 +23,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
'in_reply_to_account_id' => $status->in_reply_to_profile_id,
|
||||
'reblog' => null,
|
||||
'content' => $status->rendered ?? $status->caption,
|
||||
'created_at' => $status->created_at->format('c'),
|
||||
'created_at' => $status->created_at->toISOString(),
|
||||
'emojis' => [],
|
||||
'reblogs_count' => $status->reblogs_count != 0 ? $status->reblogs_count: $status->shares()->count(),
|
||||
'favourites_count' => $status->likes_count != 0 ? $status->likes_count: $status->likes()->count(),
|
||||
|
|
Loading…
Reference in a new issue