Issue 11846: Fix client behaviour when following hash tags

This commit is contained in:
Michael 2022-11-05 22:35:35 +00:00
parent c107c5ff0d
commit aa2b4e15a3
2 changed files with 4 additions and 1 deletions

View file

@ -109,7 +109,7 @@ class Status extends BaseDataTransferObject
}
$this->sensitive = $sensitive;
$this->spoiler_text = $item['title'] ?: $item['content-warning'];
$this->spoiler_text = ($item['title'] ?: $item['content-warning']) ?: '';
$visibility = ['public', 'private', 'unlisted'];
$this->visibility = $visibility[$item['private']];