mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 21:13:16 +00:00
Update StatusHashtagTransformer
This commit is contained in:
parent
4f9a88a77f
commit
58a19bbf05
1 changed files with 10 additions and 9 deletions
|
@ -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(),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue