]> git.mxchange.org Git - friendica-addons.git/blobdiff - diaspora/diaspora.php
added DE translation of the SAML addon
[friendica-addons.git] / diaspora / diaspora.php
index 77aef3af0a1742eddd8d8bd32af0e22a63bb1e01..599e52239d1c5b0e7a91668ada3325d2a1537c7a 100644 (file)
@@ -18,6 +18,7 @@ use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\Core\Worker;
 use Friendica\DI;
+use Friendica\Model\Post;
 
 function diaspora_install()
 {
@@ -197,6 +198,8 @@ function diaspora_send(App $a, array &$b)
                return;
        }
 
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
        $self = DBA::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);