From: Michael Date: Sun, 15 Apr 2018 19:01:19 +0000 (+0000) Subject: Forum posts now show the author when posted to Diaspora X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6eba2ccd9bba904f2486eb0606d514dea3f7f441;p=friendica.git Forum posts now show the author when posted to Diaspora --- diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index f8e4c11b24..5d69b13d75 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -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));