easter egg

This commit is contained in:
friendica
2014-07-01 18:21:22 -07:00
parent f5a1c39cdd
commit fc69220b94
3 changed files with 10 additions and 5 deletions

View File

@@ -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