Attachments are added to OStatus as well

This commit is contained in:
Michael 2021-04-29 21:16:04 +00:00
parent 639d5373e0
commit 795761ee89

View file

@ -1885,7 +1885,8 @@ class OStatus
XML::addElement($doc, $entry, "id", $item["uri"]); XML::addElement($doc, $entry, "id", $item["uri"]);
XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8')); 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'])) { if (!empty($item['title'])) {
$body = "[b]".$item['title']."[/b]\n\n".$body; $body = "[b]".$item['title']."[/b]\n\n".$body;