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
1 changed files with 1 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']];