aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-02 16:53:40 -0700
committerfriendica <info@friendica.com>2014-07-02 16:53:40 -0700
commit7b1901c2c23468248ce1770a9e2df5047e6788a6 (patch)
tree66340d08a0540e9a80ed513debdee012eceb36b3 /mod
parentf949df6ec0ea01f1347d5eadf9756a8bd3c295b1 (diff)
downloadvolse-hubzilla-7b1901c2c23468248ce1770a9e2df5047e6788a6.tar.gz
volse-hubzilla-7b1901c2c23468248ce1770a9e2df5047e6788a6.tar.bz2
volse-hubzilla-7b1901c2c23468248ce1770a9e2df5047e6788a6.zip
turn that into a feature
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php3
1 files changed, 1 insertions, 2 deletions
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