diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/add.ts b/packages/backend/src/server/api/endpoints/admin/emoji/add.ts index ed13ef5365..66b8bcbe9d 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/add.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/add.ts @@ -71,20 +71,6 @@ export default class extends Endpoint { // eslint- const driveFile = await this.driveFilesRepository.findOneBy({ id: ps.fileId }); if (driveFile == null) throw new ApiError(meta.errors.noSuchFile); - const duplicationEmoji = await this.emojisRepository.find({ - where: { - name: ps.name, - }, - }); - - duplicationEmoji.forEach( - (emoji) => { - if (emoji.name === ps.name) { - throw new ApiError(meta.errors.duplicationEmojiAdd); - } - } - ) - const emoji = await this.customEmojiService.add({ driveFile, name: ps.name,