]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Merge branch 'master' of https://github.com/friendica/friendica
[friendica.git] / mod / wall_attach.php
index bee7c29dc9684230db3c5b76a66ef9fc062f5d47..03d9f51055aa43f9920aa4dcbb7f602bfa4d0483 100644 (file)
@@ -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
 }