Avoid empty posts on Diaspora

This commit is contained in:
Michael 2021-04-30 22:35:16 +00:00
parent 3666742e7b
commit c840ee82af
4 changed files with 13 additions and 9 deletions

View file

@ -1885,7 +1885,7 @@ class OStatus
XML::addElement($doc, $entry, "id", $item["uri"]);
XML::addElement($doc, $entry, "title", html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
$body = Post\Media::addAttachmentsToBody($item['uri-id']);
$body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
$body = self::formatPicturePost($body);
if (!empty($item['title'])) {