forked from mirror/pixelfed
Update StatusTransformer, prioritize scope over deprecated visibility attribute
This commit is contained in:
parent
bc3add0525
commit
6e45021fc2
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
|
||||||
'muted' => null,
|
'muted' => null,
|
||||||
'sensitive' => (bool) $status->is_nsfw,
|
'sensitive' => (bool) $status->is_nsfw,
|
||||||
'spoiler_text' => $status->cw_summary ?? '',
|
'spoiler_text' => $status->cw_summary ?? '',
|
||||||
'visibility' => $status->visibility ?? $status->scope,
|
'visibility' => $status->scope ?? $status->visibility,
|
||||||
'application' => [
|
'application' => [
|
||||||
'name' => 'web',
|
'name' => 'web',
|
||||||
'website' => null
|
'website' => null
|
||||||
|
|
|
@ -41,7 +41,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
||||||
'muted' => null,
|
'muted' => null,
|
||||||
'sensitive' => (bool) $status->is_nsfw,
|
'sensitive' => (bool) $status->is_nsfw,
|
||||||
'spoiler_text' => $status->cw_summary ?? '',
|
'spoiler_text' => $status->cw_summary ?? '',
|
||||||
'visibility' => $status->visibility ?? $status->scope,
|
'visibility' => $status->scope ?? $status->visibility,
|
||||||
'application' => [
|
'application' => [
|
||||||
'name' => 'web',
|
'name' => 'web',
|
||||||
'website' => null
|
'website' => null
|
||||||
|
|
Loading…
Reference in a new issue