1
0
Fork 0
forked from mirror/pixelfed

Update StatusHashtagTransformer, add blurhash attribute

This commit is contained in:
Daniel Supernault 2021-01-30 16:38:43 -07:00
parent 3f772ff864
commit 899bbeba5f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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