aboutsummaryrefslogtreecommitdiffstats
path: root/mod/share.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-06 18:38:44 -0500
committerSimon L'nu <simon.lnu@gmail.com>2012-03-06 18:38:44 -0500
commit415ca107fd61562dcec41fb336efdfde58d32c8b (patch)
tree23860d3717823e3dd47304b8ee8ab2b741097f7d /mod/share.php
parenta33ca0a7318cf727b5c605c381e4c6f20463ad3e (diff)
parent496a0ce4d110e5a777861aff7cd4c82fe2308c89 (diff)
downloadvolse-hubzilla-415ca107fd61562dcec41fb336efdfde58d32c8b.tar.gz
volse-hubzilla-415ca107fd61562dcec41fb336efdfde58d32c8b.tar.bz2
volse-hubzilla-415ca107fd61562dcec41fb336efdfde58d32c8b.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: fix html reshares when editplain in use * master:
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();
}