diff options
author | Alexander Kampmann <programmer@nurfuerspam.de> | 2012-03-07 12:06:20 +0100 |
---|---|---|
committer | Alexander Kampmann <programmer@nurfuerspam.de> | 2012-03-07 12:06:20 +0100 |
commit | 4690d00141352db8ca96359cbbf65ce6eb4345c4 (patch) | |
tree | 40347f010a4b15a0eb73f09de3c928258bc9d856 /mod/share.php | |
parent | b2df1205ef805ab471a73f906d2eda5603a1aa66 (diff) | |
parent | dd2ff7c796302648992835940600c18fd200c388 (diff) | |
download | volse-hubzilla-4690d00141352db8ca96359cbbf65ce6eb4345c4.tar.gz volse-hubzilla-4690d00141352db8ca96359cbbf65ce6eb4345c4.tar.bz2 volse-hubzilla-4690d00141352db8ca96359cbbf65ce6eb4345c4.zip |
Merge branch 'master' of git://github.com/friendica/friendica
Diffstat (limited to 'mod/share.php')
-rwxr-xr-x | mod/share.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mod/share.php b/mod/share.php index bba527342..f6c025e3c 100755 --- a/mod/share.php +++ b/mod/share.php @@ -16,10 +16,18 @@ function share_init(&$a) { $o = ''; - $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); - echo $o . '<br />'; + 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 .= '♲ <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(); } |