From: Michael Date: Thu, 29 Apr 2021 21:16:04 +0000 (+0000) Subject: Attachments are added to OStatus as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=795761ee891efda9c175666199c1ea0fb3a9086f;p=friendica.git Attachments are added to OStatus as well --- diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 7ae98f070b..8021673862 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -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;