From 7f4c95d7d0bc3c7d41acfa3a20a2db478044ccd1 Mon Sep 17 00:00:00 2001 From: Kopper Date: Sun, 1 Sep 2024 08:51:46 +0300 Subject: [PATCH] [backend/akko-client] Fix reaction notifications for remote custom emoji --- Iceshrimp.Backend/Core/Services/EmojiService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Services/EmojiService.cs b/Iceshrimp.Backend/Core/Services/EmojiService.cs index 08f937cb..ce829d41 100644 --- a/Iceshrimp.Backend/Core/Services/EmojiService.cs +++ b/Iceshrimp.Backend/Core/Services/EmojiService.cs @@ -230,7 +230,7 @@ public partial class EmojiService( return emoji; } - public static bool IsCustomEmoji(string s) => CustomEmojiRegex().IsMatch(s); + public static bool IsCustomEmoji(string s) => CustomEmojiRegex().IsMatch(s) || RemoteCustomEmojiRegex().IsMatch(s); [GeneratedRegex(@"^:?([\w+-]+)(?:@\.)?:?$", RegexOptions.Compiled)] private static partial Regex CustomEmojiRegex();