Update src/Object/Api/Mastodon/Status.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel
2022-11-05 23:51:16 +01:00
committed by GitHub
parent 9fa3df3cbf
commit 52f74b6312

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']];