]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
Address some PHP 8.1 deprecation notices
[friendica.git] / src / Protocol / OStatus.php
index 6ec9b9fea15a59ac4ac0ff08fad275665115edc0..06f849d1fccf1722ce6b0ed48a67cead90bfde3d 100644 (file)
@@ -1598,7 +1598,7 @@ class OStatus
                XML::addElement($doc, $entry, 'id', $item['uri']);
                XML::addElement($doc, $entry, 'title', html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
 
-               $body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
+               $body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
                $body = self::formatPicturePost($body, $item['uri-id']);
 
                if (!empty($item['title'])) {