Move "html_entity_decode"

This commit is contained in:
Michael 2023-08-28 20:53:31 +00:00
parent 9066a6133c
commit 7ee07535f5

View file

@ -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));
}