]> git.mxchange.org Git - friendica.git/commitdiff
Attachments are added to OStatus as well
authorMichael <heluecht@pirati.ca>
Thu, 29 Apr 2021 21:16:04 +0000 (21:16 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 29 Apr 2021 21:16:04 +0000 (21:16 +0000)
src/Protocol/OStatus.php

index 7ae98f070b810e8617e708ff4dd3efeb069f71eb..8021673862bc9f933812efc0cd7087f88f2e15d9 100644 (file)
@@ -1885,7 +1885,8 @@ class OStatus
                XML::addElement($doc, $entry, "id", $item["uri"]);
                XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
 
-               $body = self::formatPicturePost($item['body']);
+               $body = Post\Media::addAttachmentsToBody($item['uri-id']);
+               $body = self::formatPicturePost($body);
 
                if (!empty($item['title'])) {
                        $body = "[b]".$item['title']."[/b]\n\n".$body;