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