From 6eba2ccd9bba904f2486eb0606d514dea3f7f441 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 15 Apr 2018 19:01:19 +0000 Subject: [PATCH] Forum posts now show the author when posted to Diaspora --- src/Protocol/Diaspora.php | 6 ++++++ 1 file changed, 6 insertions(+) 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)); -- 2.39.5