Add atachments to body for Diaspora and DFRN

This commit is contained in:
Michael 2021-04-29 21:05:22 +00:00
parent 7c80f513d5
commit 639d5373e0
3 changed files with 46 additions and 35 deletions

View file

@ -899,10 +899,10 @@ class DFRN
$entry->setAttribute("xmlns:statusnet", ActivityNamespace::STATUSNET);
}
$body = Post\Media::addAttachmentsToBody($item['uri-id']);
if ($item['private'] == Item::PRIVATE) {
$body = Item::fixPrivatePhotos($item['body'], $owner['uid'], $item, $cid);
} else {
$body = $item['body'];
$body = Item::fixPrivatePhotos($body, $owner['uid'], $item, $cid);
}
// Remove the abstract element. It is only locally important.