Skip to content

Commit 8355f95

Browse files
authored
Merge pull request #23415 from nextcloud/bugfix/23304/some-emojis-are-in-general-other-types
Some emojis are in CHAR_CATEGORY_GENERAL_OTHER_TYPES
2 parents b2d1c8b + ee7eb6f commit 8355f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/user_status/lib/Service/EmojiService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public function isValidEmoji(string $emoji): bool {
8181
// just continue and check the next character
8282
if ($codePointType === \IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL ||
8383
$codePointType === \IntlChar::CHAR_CATEGORY_MODIFIER_LETTER ||
84-
$codePointType === \IntlChar::CHAR_CATEGORY_OTHER_SYMBOL) {
84+
$codePointType === \IntlChar::CHAR_CATEGORY_OTHER_SYMBOL ||
85+
$codePointType === \IntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPES) {
8586
continue;
8687
}
8788

0 commit comments

Comments
 (0)