aboutsummaryrefslogtreecommitdiffstats
path: root/mod/share.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-06 15:28:27 -0800
committerfriendica <info@friendica.com>2012-03-06 15:28:27 -0800
commit7431bd950937929a21b7d158564a8f9a80d07c5f (patch)
treefa543516f86f33fd4bbef66653a72919b5b85e75 /mod/share.php
parenta464e4d33fbca9c02cd99abab092d43b631aa780 (diff)
downloadvolse-hubzilla-7431bd950937929a21b7d158564a8f9a80d07c5f.tar.gz
volse-hubzilla-7431bd950937929a21b7d158564a8f9a80d07c5f.tar.bz2
volse-hubzilla-7431bd950937929a21b7d158564a8f9a80d07c5f.zip
fix html reshares when editplain in use
Diffstat (limited to 'mod/share.php')
-rwxr-xr-xmod/share.php18
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 .= '&#x2672; <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 .= '&#x2672; [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 .= '&#x2672; <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();
}