diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index c9ec56eeb..ce43bdf96 100644 --- a/mod/item.php +++ b/mod/item.php @@ -375,7 +375,7 @@ function item_post(&$a) { killme(); } } - + $expires = '0000-00-00 00:00:00'; @@ -422,6 +422,13 @@ function item_post(&$a) { if($mimetype === 'text/bbcode') { + if(local_user() && local_user() == $profile_uid && get_pconfig(local_user(),'editor','use_markdown')) { + require_once('include/bb2diaspora.php'); + $body = diaspora2bb($body); + } + + + // 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 |