1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update StatusHashtagTransformer

This commit is contained in:
Daniel Supernault 2019-07-01 23:14:01 -06:00
parent 914b0e4965
commit 4f9a88a77f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,6 +18,7 @@ class StatusHashtagTransformer extends Fractal\TransformerAbstract
'type' => $status->type, 'type' => $status->type,
'url' => $status->url(), 'url' => $status->url(),
'thumb' => $status->thumb(), 'thumb' => $status->thumb(),
'filter' => $status->firstMedia()->filter_class,
'sensitive' => (bool) $status->is_nsfw, 'sensitive' => (bool) $status->is_nsfw,
'like_count' => $status->likes_count, 'like_count' => $status->likes_count,
'share_count' => $status->reblogs_count, 'share_count' => $status->reblogs_count,