mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:03:41 +00:00
Update src/Content/Smilies.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
7ee07535f5
commit
6ed440718d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue