From e6330e3b966401f83d54bdd08c9ed9ab294643e0 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 17 Apr 2012 06:11:41 -0700 Subject: [PATCH] naked br appearing when attaching and textplain --- mod/wall_attach.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/wall_attach.php b/mod/wall_attach.php index bee7c29dc9..03d9f51055 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -98,8 +98,13 @@ function wall_attach_post(&$a) { killme(); } - echo '

[attachment]' . $r[0]['id'] . '[/attachment]' . '
'; + $lf = '
'; + if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) + $lf = "\n"; + + echo $lf . $lf . '[attachment]' . $r[0]['id'] . '[/attachment]' . $lf; + killme(); // NOTREACHED }