From ee7eb6f2b3f41e93f94b894b790933edce544191 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 13 Oct 2020 15:32:34 +0200 Subject: [PATCH] Some emojis are in CHAR_CATEGORY_GENERAL_OTHER_TYPES Signed-off-by: Joas Schilling --- apps/user_status/lib/Service/EmojiService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user_status/lib/Service/EmojiService.php b/apps/user_status/lib/Service/EmojiService.php index bb0506d242fb5..b55be89f290be 100644 --- a/apps/user_status/lib/Service/EmojiService.php +++ b/apps/user_status/lib/Service/EmojiService.php @@ -81,7 +81,8 @@ public function isValidEmoji(string $emoji): bool { // just continue and check the next character if ($codePointType === \IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL || $codePointType === \IntlChar::CHAR_CATEGORY_MODIFIER_LETTER || - $codePointType === \IntlChar::CHAR_CATEGORY_OTHER_SYMBOL) { + $codePointType === \IntlChar::CHAR_CATEGORY_OTHER_SYMBOL || + $codePointType === \IntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPES) { continue; }