1
0
Fork 0

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
1 changed files with 2 additions and 1 deletions

View File

@ -12,12 +12,13 @@ class StatusHashtagTransformer extends Fractal\TransformerAbstract
$hashtag = $statusHashtag->hashtag;
$status = $statusHashtag->status;
$profile = $statusHashtag->profile;
return [
'status' => [
'type' => $status->type,
'url' => $status->url(),
'thumb' => $status->thumb(),
'filter' => $status->firstMedia()->filter_class,
'sensitive' => (bool) $status->is_nsfw,
'like_count' => $status->likes_count,
'share_count' => $status->reblogs_count,