[backend/akko-client] Fix reaction notifications for remote custom emoji

This commit is contained in:
Kopper 2024-09-01 08:51:46 +03:00 committed by Iceshrimp development
parent bcb6382c73
commit 7f4c95d7d0

View file

@ -230,7 +230,7 @@ public partial class EmojiService(
return emoji; 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)] [GeneratedRegex(@"^:?([\w+-]+)(?:@\.)?:?$", RegexOptions.Compiled)]
private static partial Regex CustomEmojiRegex(); private static partial Regex CustomEmojiRegex();