From 7ee07535f5b7bd8fdc68d8c5c7ddae529346e469 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 28 Aug 2023 20:53:31 +0000 Subject: [PATCH] Move "html_entity_decode" --- src/Content/Smilies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Smilies.php b/src/Content/Smilies.php index add6281ec3..0c3397f13e 100644 --- a/src/Content/Smilies.php +++ b/src/Content/Smilies.php @@ -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)); }