aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-17 06:11:41 -0700
committerfriendica <info@friendica.com>2012-04-17 06:11:41 -0700
commite6330e3b966401f83d54bdd08c9ed9ab294643e0 (patch)
tree91a455cfadfa4b700f605a44b83b9ff05987bf89
parenta7421990350e2409ee90957dab37e1ff1fc272df (diff)
downloadvolse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.tar.gz
volse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.tar.bz2
volse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.zip
naked br appearing when attaching and textplain
-rw-r--r--mod/wall_attach.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php
index bee7c29dc..03d9f5105 100644
--- a/mod/wall_attach.php
+++ b/mod/wall_attach.php
@@ -98,8 +98,13 @@ function wall_attach_post(&$a) {
killme();
}
- echo '<br /><br />[attachment]' . $r[0]['id'] . '[/attachment]' . '<br />';
+ $lf = '<br />';
+ if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
+ $lf = "\n";
+
+ echo $lf . $lf . '[attachment]' . $r[0]['id'] . '[/attachment]' . $lf;
+
killme();
// NOTREACHED
}