1
0
Fork 0

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

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,