diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts b/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts index 40f9f9e1e3..83b093e931 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts @@ -13,6 +13,7 @@ import { DriveService } from '@/core/DriveService.js'; import { GlobalEventService } from '@/core/GlobalEventService.js'; import { EmojiEntityService } from '@/core/entities/EmojiEntityService.js'; import { ApiError } from '../../../error.js'; +import {IsNull} from "typeorm"; export const meta = { tags: ['admin'], @@ -78,6 +79,7 @@ export default class extends Endpoint { // eslint- const duplicationEmoji = await this.emojisRepository.find({ where: { name: emoji.name, + host: IsNull() }, });