mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
Fix custom emoji validation (#4528)
This commit is contained in:
parent
c06deed9df
commit
3493730e25
@ -47,7 +47,7 @@ export async function toDbReaction(reaction: string, enableEmoji = true): Promis
|
||||
return normalized;
|
||||
}
|
||||
|
||||
const custom = reaction.match(/:([\w+-]+):/);
|
||||
const custom = reaction.match(/^:([\w+-]+):$/);
|
||||
if (custom) {
|
||||
const emoji = await Emoji.findOne({
|
||||
host: null,
|
||||
|
Loading…
Reference in New Issue
Block a user