move emoji emoticons (not reactions) to plugin

This commit is contained in:
zotlabs
2017-03-05 16:18:09 -08:00
parent 384db9d10d
commit 4c0c153b8f
1824 changed files with 2 additions and 18 deletions

View File

@@ -1224,20 +1224,6 @@ function list_smilies() {
);
$x = get_config('feature','emoji');
if($x === false)
$x = 1;
if($x) {
if(! App::$emojitab)
App::$emojitab = json_decode(file_get_contents('library/emoji.json'),true);
foreach(App::$emojitab as $e) {
if(strpos($e['shortname'],':tone') === 0)
continue;
$texts[] = $e['shortname'];
$icons[] = '<img class="smiley emoji" height="16" width="16" src="images/emoji/' . $e['unicode'] . '.png' . '" alt="' . $e['name'] . '" />';
}
}
$params = array('texts' => $texts, 'icons' => $icons);
call_hooks('smilie', $params);