fix html reshares when editplain in use
This commit is contained in:
parent
a464e4d33f
commit
7431bd9509
|
@ -16,10 +16,18 @@ function share_init(&$a) {
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
$o .= '♲ <a href="' . $r[0]['author-link'] . '">' . $r[0]['author-name'] . '</a><br />';
|
if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) {
|
||||||
if($r[0]['title'])
|
$o .= '♲ [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]';
|
||||||
$o .= '<strong>' . $r[0]['title'] . '</strong><br />';
|
if($r[0]['title'])
|
||||||
$o .= bbcode($r[0]['body'], true);
|
$o .= '[b]' . $r[0]['title'] . '[/b]' . "\n";
|
||||||
echo $o . '<br />';
|
$o .= $r[0]['body'] . "\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$o .= '♲ <a href="' . $r[0]['author-link'] . '">' . $r[0]['author-name'] . '</a><br />';
|
||||||
|
if($r[0]['title'])
|
||||||
|
$o .= '<strong>' . $r[0]['title'] . '</strong><br />';
|
||||||
|
$o .= bbcode($r[0]['body'], true) . '<br />';
|
||||||
|
}
|
||||||
|
echo $o;
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue