From: friendica Date: Tue, 6 Mar 2012 23:28:27 +0000 (-0800) Subject: fix html reshares when editplain in use X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7431bd950937929a21b7d158564a8f9a80d07c5f;p=friendica.git fix html reshares when editplain in use --- diff --git a/mod/share.php b/mod/share.php index bba527342a..f6c025e3ce 100755 --- a/mod/share.php +++ b/mod/share.php @@ -16,10 +16,18 @@ function share_init(&$a) { $o = ''; - $o .= '♲ ' . $r[0]['author-name'] . '
'; - if($r[0]['title']) - $o .= '' . $r[0]['title'] . '
'; - $o .= bbcode($r[0]['body'], true); - echo $o . '
'; + if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) { + $o .= '♲ [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]'; + if($r[0]['title']) + $o .= '[b]' . $r[0]['title'] . '[/b]' . "\n"; + $o .= $r[0]['body'] . "\n"; + } + else { + $o .= '♲ ' . $r[0]['author-name'] . '
'; + if($r[0]['title']) + $o .= '' . $r[0]['title'] . '
'; + $o .= bbcode($r[0]['body'], true) . '
'; + } + echo $o; killme(); }