]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Object/Api/Mastodon/Status.php
authorMichael Vogel <icarus@dabo.de>
Sat, 5 Nov 2022 22:51:16 +0000 (23:51 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Nov 2022 22:51:16 +0000 (23:51 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Object/Api/Mastodon/Status.php

index b0832f0c34821296a2457f1248e71e5d9cb82e51..8ba99ebfa531d2ac2c4e8264048c7a83e43bb694 100644 (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']];