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
1 changed files with 2 additions and 1 deletions

View File

@ -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;