1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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