naked br appearing when attaching and textplain

This commit is contained in:
friendica 2012-04-17 06:11:41 -07:00
parent a742199035
commit e6330e3b96

View file

@ -98,7 +98,12 @@ function wall_attach_post(&$a) {
killme(); 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(); killme();
// NOTREACHED // NOTREACHED