]> git.mxchange.org Git - friendica.git/commitdiff
Use the raw body if not null
authorMichael <heluecht@pirati.ca>
Sat, 31 Oct 2020 16:32:41 +0000 (16:32 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 31 Oct 2020 16:32:41 +0000 (16:32 +0000)
src/Object/Api/Mastodon/Status.php

index 558069f19a345d843e94f2cb0c45401b58fd911f..1b09a4f01a8652755be78e4eb52540e99a0ab723 100644 (file)
@@ -126,7 +126,7 @@ class Status extends BaseEntity
                $this->muted = $userAttributes->muted;
                $this->bookmarked = $userAttributes->bookmarked;
                $this->pinned = $userAttributes->pinned;
-               $this->content = BBCode::convert($item['body'], false);
+               $this->content = BBCode::convert($item['raw-body'] ?? $item['body'], false);
                $this->reblog = null; /// @todo
                $this->application = $application->toArray();
                $this->account = $account->toArray();