From 7b1901c2c23468248ce1770a9e2df5047e6788a6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 2 Jul 2014 16:53:40 -0700 Subject: turn that into a feature --- mod/item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index c346389e7..d4739244a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -422,13 +422,12 @@ function item_post(&$a) { if($mimetype === 'text/bbcode') { - if(local_user() && local_user() == $profile_uid && get_pconfig(local_user(),'editor','use_markdown')) { + if(local_user() && local_user() == $profile_uid && feature_enabled(local_user(),'markdown')) { require_once('include/bb2diaspora.php'); $body = diaspora2bb($body,true); } - // BBCODE alert: the following functions assume bbcode input // and will require alternatives for alternative content-types (text/html, text/markdown, text/plain, etc.) // we may need virtual or template classes to implement the possible alternatives -- cgit v1.2.3