Merge pull request #4845 from annando/diaspora-forums

Forum posts now show the author when posted to Diaspora
This commit is contained in:
Hypolite Petovan 2018-04-15 16:35:30 -04:00 committed by GitHub
commit 12a71f0155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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));