]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
AP: Support "discoverable"
[friendica.git] / src / Protocol / OStatus.php
index 7ae98f070b810e8617e708ff4dd3efeb069f71eb..9de0138ad6f64782dd19f5ca3e48f84a3d177d2f 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'], $item['body']);
+               $body = self::formatPicturePost($body);
 
                if (!empty($item['title'])) {
                        $body = "[b]".$item['title']."[/b]\n\n".$body;