]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Move HTML part of oid to template + replace outside the tpl
[friendica.git] / mod / item.php
index 6bd856b96d0377b45a64303165864967d838f863..2ed1b812a48cb22cc51ed31dfcb40e58e906dede 100644 (file)
@@ -309,7 +309,11 @@ function item_post(&$a) {
        // First figure out if it's a status post that would've been
        // created using tinymce. Otherwise leave it alone. 
 
-       $plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) : 0);
+/*     $plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) || !feature_enabled($profile_uid,'richtext') : 0);
+       if((! $parent) && (! $api_source) && (! $plaintext)) {
+               $body = fix_mce_lf($body);
+       }*/
+       $plaintext = (local_user() ? !feature_enabled($profile_uid,'richtext') : 0);
        if((! $parent) && (! $api_source) && (! $plaintext)) {
                $body = fix_mce_lf($body);
        }