Update StatusHashtagTransformer, add scope to status

This commit is contained in:
Daniel Supernault 2019-07-07 23:30:21 -06:00
parent 78d19ed847
commit a0eb1f1906
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -26,7 +26,8 @@ class StatusHashtagTransformer extends Fractal\TransformerAbstract
'user' => [
'username' => $profile->username,
'url' => $profile->url(),
]
],
'visibility' => $status->visibility ?? $status->scope
],
'hashtag' => [
'name' => $hashtag->name,