From: Michael Date: Tue, 27 Jul 2021 12:25:38 +0000 (+0000) Subject: Fix possible fatal error when body is null X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8dd21d82f50d6e96f39da4b452dd06368c029d14;hp=9226b98724b688e269e18e37b5c369c719d5b715;p=friendica.git Fix possible fatal error when body is null --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index b7a180e064..20b8f2a262 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -1557,7 +1557,7 @@ class Transmitter // The contentMap does contain the unmodified HTML. $language = self::getLanguage($item); if (!empty($language)) { - $richbody = BBCode::setMentionsToNicknames($item['body']); + $richbody = BBCode::setMentionsToNicknames($item['body'] ?? ''); $richbody = BBCode::removeAttachment($richbody); $data['contentMap'][$language] = BBCode::convertForUriId($item['uri-id'], $richbody, BBCode::EXTERNAL);