Update StatusHashtagTransformer

This commit is contained in:
Daniel Supernault 2019-07-02 00:33:58 -06:00
parent 4f9a88a77f
commit 58a19bbf05
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -15,21 +15,22 @@ class StatusHashtagTransformer extends Fractal\TransformerAbstract
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,
'id' => (int) $status->id,
'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,
'user' => [
'username' => $profile->username,
'url' => $profile->url(),
]
],
'hashtag' => [
'name' => $hashtag->name,
'url' => $hashtag->url(),
'name' => $hashtag->name,
'url' => $hashtag->url(),
]
];
}