diff options
author | friendica <info@friendica.com> | 2014-07-01 18:21:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-01 18:21:22 -0700 |
commit | fc69220b94efb39169e401b31e70904ac3294255 (patch) | |
tree | bebcdd76c7b28afaf7367a75e5c8510acf426622 /mod/item.php | |
parent | f5a1c39cdd06ff9991cbd63f48163325709aeaeb (diff) | |
download | volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.tar.gz volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.tar.bz2 volse-hubzilla-fc69220b94efb39169e401b31e70904ac3294255.zip |
easter egg
Diffstat (limited to 'mod/item.php')
-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 |