From 795761ee891efda9c175666199c1ea0fb3a9086f Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 29 Apr 2021 21:16:04 +0000 Subject: [PATCH] Attachments are added to OStatus as well --- src/Protocol/OStatus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 7ae98f070..802167386 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;