fix(habitica): Removed emojji from inbox

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 0a00aadd
......@@ -348,6 +348,10 @@ if ( $url_namespace == "register" && ! array_key_exists( "_nx_fb_usr", $_COOKIE
$icoColour = "bg-danger";
}
if (preg_match('/^:/m', $data['task']['text'])) {
$data['task']['text'] = preg_replace('/^:([\w]+): (.+)/m', '$1', $data['task']['text']);
}
$db_prefix = $fitbitApp->getSetting("db_prefix", null, false);
$fitbitApp->getDatabase()->insert($db_prefix . "inbox",
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment