]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Fix "Undefined index: reply-to-id"
[friendica.git] / src / Protocol / Feed.php
index 5738c01d8a18ac4649c501ed2e9dee8260dc963f..c088876d93f4834d10d908a95d446c30619404e9 100644 (file)
@@ -1107,9 +1107,9 @@ class Feed
                XML::addElement($doc, $entry, "id", $item["uri"]);
                XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
 
-               $body = OStatus::formatPicturePost($item['body']);
+               $body = OStatus::formatPicturePost($item['body'], $item['uri-id']);
 
-               $body = BBCode::convert($body, false, BBCode::OSTATUS);
+               $body = BBCode::convertForUriId($item['uri-id'], $body, BBCode::OSTATUS, false);
 
                XML::addElement($doc, $entry, "content", $body, ["type" => "html"]);
 
@@ -1186,7 +1186,7 @@ class Feed
        private static function getTitle(array $item)
        {
                if ($item['title'] != '') {
-                       return BBCode::convert($item['title'], false, BBCode::OSTATUS);
+                       return BBCode::convertForUriId($item['uri-id'], $item['title'], BBCode::OSTATUS);
                }
 
                // Fetch information about the post