mirror of
https://github.com/friendica/friendica
synced 2024-11-16 13:27:40 +01:00
Update src/Object/Api/Mastodon/Status.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
9fa3df3cbf
commit
52f74b6312
|
@ -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']];
|
||||
|
|
Loading…
Reference in a new issue