Issue 8458-2: Now all unicode emojis should work
This commit is contained in:
parent
62f3c1f4b8
commit
e737eea17d
1 changed files with 7 additions and 7 deletions
|
@ -1724,14 +1724,14 @@ class BBCode
|
||||||
|
|
||||||
// Replace non graphical smilies for external posts
|
// Replace non graphical smilies for external posts
|
||||||
if (!$nosmile && !$for_plaintext) {
|
if (!$nosmile && !$for_plaintext) {
|
||||||
$oldtext = $text;
|
|
||||||
$text = Smilies::replace($text);
|
$text = Smilies::replace($text);
|
||||||
if (DI::config()->get('system', 'big_emojis') && ($simple_html != self::DIASPORA) && ($oldtext != $text)) {
|
}
|
||||||
$conv = html_entity_decode(str_replace([' ', "\n", "\r"], '', $text));
|
|
||||||
// Emojis are always 4 byte Unicode characters
|
if (DI::config()->get('system', 'big_emojis') && ($simple_html != self::DIASPORA)) {
|
||||||
if (strlen($conv) / mb_strlen($conv) == 4) {
|
$conv = html_entity_decode(str_replace([' ', "\n", "\r"], '', $text));
|
||||||
$text = '<span style="font-size: xx-large; line-height: initial;">' . $text . '</span>';
|
// Emojis are always 4 byte Unicode characters
|
||||||
}
|
if (strlen($conv) / mb_strlen($conv) == 4) {
|
||||||
|
$text = '<span style="font-size: xx-large; line-height: initial;">' . $text . '</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue