From cd45dfcc1a0a02b7116ce696bb7f6d790a2fa34c Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sun, 17 Sep 2023 19:20:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=81=AE=E7=B5=B5=E6=96=87=E5=AD=97=E3=82=92=E9=87=8D=E8=A4=87?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/admin/emoji/copy.ts | 2 ++ 1 file changed, 2 insertions(+) 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() }, });