fix misskey-dev/misskey-#10417 (#10418)
This commit is contained in:
parent
e76d3e72db
commit
9629929977
@ -86,6 +86,10 @@ export class ImportCustomEmojisProcessorService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const emojiInfo = record.emoji;
|
const emojiInfo = record.emoji;
|
||||||
|
if (!/^[a-zA-Z0-9_]+$/.test(emojiInfo.name)) {
|
||||||
|
this.logger.error(`invalid emojiname: ${emojiInfo.name}`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const emojiPath = outputPath + '/' + record.fileName;
|
const emojiPath = outputPath + '/' + record.fileName;
|
||||||
await this.emojisRepository.delete({
|
await this.emojisRepository.delete({
|
||||||
name: emojiInfo.name,
|
name: emojiInfo.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user