Merge pull request #4845 from annando/diaspora-forums
Forum posts now show the author when posted to Diaspora
This commit is contained in:
commit
12a71f0155
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue