リアクションの修正 (#6260)

This commit is contained in:
MeiMei
2020-04-16 00:47:17 +09:00
committed by GitHub
parent f32d8b7069
commit fa75b40dfd
4 changed files with 21 additions and 18 deletions

View File

@ -70,7 +70,7 @@ export async function toDbReaction(reaction?: string | null, reacterHost?: strin
return unicode.match('\u200d') ? unicode : unicode.replace(/\ufe0f/g, '');
}
const custom = reaction.match(/^:([\w+-]+):$/);
const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/);
if (custom) {
const name = custom[1];
const emoji = await Emojis.findOne({