move all fix_mce to one function so it can easily be undone

This commit is contained in:
friendica 2012-04-10 17:14:07 -07:00
commit 18e225b051
2 changed files with 2 additions and 4 deletions

View file

@ -48,8 +48,7 @@ function message_post(&$a) {
$plaintext = intval(get_pconfig(local_user(),'system','plaintext'));
if(! $plaintext) {
$body = str_replace("\r\n","\n",$body);
$body = str_replace("\n\n","\n",$body);
$body = fix_mce_lf($body);
}
$ret = send_message($recipient, $body, $subject, $replyto);