aboutsummaryrefslogtreecommitdiffstats
path: root/mod/share.php
diff options
context:
space:
mode:
authorThomas <rat@rlyeh-military-affairs>2012-03-06 23:56:37 +0000
committerThomas <rat@rlyeh-military-affairs>2012-03-06 23:56:37 +0000
commitdadf80f64479792be85c7026fe1e3c5440066211 (patch)
tree9bb9f515c571d361b9e16f6ef6a308f4ffac5ed2 /mod/share.php
parent22624917e03b0ea90de19b0808c5435aa04d3613 (diff)
parent05a52b2660a879a97d511b180e26fe12310d0464 (diff)
downloadvolse-hubzilla-dadf80f64479792be85c7026fe1e3c5440066211.tar.gz
volse-hubzilla-dadf80f64479792be85c7026fe1e3c5440066211.tar.bz2
volse-hubzilla-dadf80f64479792be85c7026fe1e3c5440066211.zip
Merge remote-tracking branch 'upstream/master'
Conflicts: images/smiley-beard.png
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();
}