]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Add atachments to body for Diaspora and DFRN
[friendica.git] / src / Protocol / DFRN.php
index 5eee17e52db40debd1a6482fe7907803dd7d8f65..0c348610e24ed5115f16425a4677f9621962c5ba 100644 (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.