From: friendica Date: Tue, 17 Apr 2012 13:11:41 +0000 (-0700) Subject: naked br appearing when attaching and textplain X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6330e3b966401f83d54bdd08c9ed9ab294643e0;p=friendica.git naked br appearing when attaching and textplain --- 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 }