Forum posts now show the author when posted to Diaspora

This commit is contained in:
Michael 2018-04-15 19:01:19 +00:00
parent e7680a40d4
commit 6eba2ccd9b

View file

@ -3760,6 +3760,12 @@ class Diaspora
$title = $item["title"]; $title = $item["title"];
$body = $item["body"]; $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 // convert to markdown
$body = html_entity_decode(BBCode::toMarkdown($body)); $body = html_entity_decode(BBCode::toMarkdown($body));