]> git.mxchange.org Git - friendica.git/commitdiff
Forum posts now show the author when posted to Diaspora
authorMichael <heluecht@pirati.ca>
Sun, 15 Apr 2018 19:01:19 +0000 (19:01 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 15 Apr 2018 19:01:19 +0000 (19:01 +0000)
src/Protocol/Diaspora.php

index f8e4c11b241b382b6d362a38f859b16a110bdb43..5d69b13d753585ff724f39f525bb1b4f910ea5e4 100644 (file)
@@ -3760,6 +3760,12 @@ class Diaspora
                        $title = $item["title"];
                        $body = $item["body"];
 
+                       if ($item['author-link'] != $item['owner-link']) {
+                               require_once 'mod/share.php';
+                               $body = share_header($item['author-name'], $item['author-link'], $item['author-avatar'],
+                                       "", $item['created'], $item['plink']) . $body . '[/share]';
+                       }
+
                        // convert to markdown
                        $body = html_entity_decode(BBCode::toMarkdown($body));