]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Fix missing attached links in posts
[friendica.git] / src / Protocol / Diaspora.php
index 271b71b893e1b20120a93a5bcf2da293d0a14443..91eb1cc2c412717878f48a9827a2fd5e2a84781e 100644 (file)
@@ -3326,6 +3326,7 @@ class Diaspora
 
                        $title = $item['title'];
                        $body  = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item), $attach_media);
+                       $body  = Post\Media::addHTMLLinkToBody($item['uri-id'], $body);
 
                        // Fetch the title from an attached link - if there is one
                        if (empty($item['title']) && DI::pConfig()->get($owner['uid'], 'system', 'attach_link_title')) {
@@ -3585,6 +3586,7 @@ class Diaspora
                }
 
                $body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
+               $body = Post\Media::addHTMLLinkToBody($item['uri-id'], $body);
 
                // The replied to autor mention is prepended for clarity if:
                // - Item replied isn't yours