mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:50:12 +00:00
Add atachments to body for Diaspora and DFRN
This commit is contained in:
parent
7c80f513d5
commit
639d5373e0
3 changed files with 46 additions and 35 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue