mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-10 22:20:46 +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 [
|
return [
|
||||||
'status' => [
|
'status' => [
|
||||||
'type' => $status->type,
|
'id' => (int) $status->id,
|
||||||
'url' => $status->url(),
|
'type' => $status->type,
|
||||||
'thumb' => $status->thumb(),
|
'url' => $status->url(),
|
||||||
'filter' => $status->firstMedia()->filter_class,
|
'thumb' => $status->thumb(),
|
||||||
'sensitive' => (bool) $status->is_nsfw,
|
'filter' => $status->firstMedia()->filter_class,
|
||||||
'like_count' => $status->likes_count,
|
'sensitive' => (bool) $status->is_nsfw,
|
||||||
'share_count' => $status->reblogs_count,
|
'like_count' => $status->likes_count,
|
||||||
|
'share_count' => $status->reblogs_count,
|
||||||
'user' => [
|
'user' => [
|
||||||
'username' => $profile->username,
|
'username' => $profile->username,
|
||||||
'url' => $profile->url(),
|
'url' => $profile->url(),
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'hashtag' => [
|
'hashtag' => [
|
||||||
'name' => $hashtag->name,
|
'name' => $hashtag->name,
|
||||||
'url' => $hashtag->url(),
|
'url' => $hashtag->url(),
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue