Update StatusHashtagTransformer, add scope to status

pull/1480/head
Daniel Supernault 6 years ago
parent 78d19ed847
commit a0eb1f1906
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save