]> git.mxchange.org Git - friendica.git/commitdiff
Move "html_entity_decode"
authorMichael <heluecht@pirati.ca>
Mon, 28 Aug 2023 20:53:31 +0000 (20:53 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Aug 2023 20:53:31 +0000 (20:53 +0000)
src/Content/Smilies.php

index add6281ec3a14b7650351881efddbcac328bf8e8..0c3397f13e4be5e9011d0c6a0e52405a8072ef39 100644 (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));
        }