Move "html_entity_decode"
This commit is contained in:
parent
9066a6133c
commit
7ee07535f5
|
@ -294,7 +294,7 @@ class Smilies
|
|||
*/
|
||||
public static function isEmojiPost(string $body): bool
|
||||
{
|
||||
$conv = html_entity_decode(preg_replace('#\s#', '', $body));
|
||||
$conv = preg_replace('#\s#', '', html_entity_decode($body));
|
||||
// Emojis are always 4 byte Unicode characters
|
||||
return (!empty($conv) && (strlen($conv) / mb_strlen($conv) == 4));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user