]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Content/Smilies.php
authorMichael Vogel <icarus@dabo.de>
Tue, 29 Aug 2023 02:59:27 +0000 (04:59 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 02:59:27 +0000 (04:59 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Content/Smilies.php

index 0c3397f13e4be5e9011d0c6a0e52405a8072ef39..b7abbd8e5fa125eda653decc01f32d018700dcaa 100644 (file)
@@ -294,7 +294,7 @@ class Smilies
         */
        public static function isEmojiPost(string $body): bool
        {
-               $conv = preg_replace('#\s#', '', html_entity_decode($body));
+               $conv = preg_replace('#\s#u', '', html_entity_decode($body));
                // Emojis are always 4 byte Unicode characters
                return (!empty($conv) && (strlen($conv) / mb_strlen($conv) == 4));
        }