From fc69220b94efb39169e401b31e70904ac3294255 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 1 Jul 2014 18:21:22 -0700 Subject: easter egg --- mod/item.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mod') 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 -- cgit v1.2.3