mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Fix custom emoji validation (#4528)
This commit is contained in:
parent
c06deed9df
commit
3493730e25
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue