From 52f74b6312357cd1cc050ed7fc96b8357090cd30 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 5 Nov 2022 23:51:16 +0100 Subject: [PATCH] Update src/Object/Api/Mastodon/Status.php Co-authored-by: Hypolite Petovan --- src/Object/Api/Mastodon/Status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/Api/Mastodon/Status.php b/src/Object/Api/Mastodon/Status.php index b0832f0c34..8ba99ebfa5 100644 --- a/src/Object/Api/Mastodon/Status.php +++ b/src/Object/Api/Mastodon/Status.php @@ -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']]; -- 2.39.5