1
0
Fork 0
forked from mirror/pixelfed

Update StatusStateless resource

This commit is contained in:
Daniel Supernault 2023-01-28 20:53:58 -07:00
parent 9ab9ffbafe
commit ddbabddd83
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -41,7 +41,7 @@ class StatusStateless extends JsonResource
'reblog' => null,
'content' => $status->rendered ?? $status->caption,
'content_text' => $status->caption,
// 'created_at' => str_replace('+00:00', 'Z', $status->created_at->format(DATE_RFC3339_EXTENDED)),
'created_at' => str_replace('+00:00', 'Z', $status->created_at->format(DATE_RFC3339_EXTENDED)),
'emojis' => CustomEmoji::scan($status->caption),
'reblogs_count' => $status->reblogs_count ?? 0,
'favourites_count' => $status->likes_count ?? 0,