mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update StatusTransformer, make spoiler_text non-nullable
This commit is contained in:
parent
284cd84c85
commit
b66cf9cdc2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
'favourited' => $status->liked(),
|
||||
'muted' => null,
|
||||
'sensitive' => (bool) $status->is_nsfw,
|
||||
'spoiler_text' => $status->cw_summary,
|
||||
'spoiler_text' => $status->cw_summary ?? '',
|
||||
'visibility' => $status->visibility ?? $status->scope,
|
||||
'application' => [
|
||||
'name' => 'web',
|
||||
|
|
Loading…
Reference in a new issue