Fix custom emoji validation (#4528)
This commit is contained in:
parent
bd2ac515d1
commit
c65256d02b
@ -47,7 +47,7 @@ export async function toDbReaction(reaction: string, enableEmoji = true): Promis
|
|||||||
return normalized;
|
return normalized;
|
||||||
}
|
}
|
||||||
|
|
||||||
const custom = reaction.match(/:([\w+-]+):/);
|
const custom = reaction.match(/^:([\w+-]+):$/);
|
||||||
if (custom) {
|
if (custom) {
|
||||||
const emoji = await Emoji.findOne({
|
const emoji = await Emoji.findOne({
|
||||||
host: null,
|
host: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user