From 1f1908870c215a0dab489bb9da05ef367f76074d Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 23 Dec 2023 11:06:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=82=B0fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/server/api/endpoints/admin/emoji/update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/update.ts b/packages/backend/src/server/api/endpoints/admin/emoji/update.ts index d2d0bbc9b1..ce250760df 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/update.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/update.ts @@ -65,7 +65,7 @@ export const paramDef = { } }, Request: { type: 'boolean' }, }, - required: ['id', 'name', 'draft', 'aliases'], + required: ['id', 'name', 'aliases'], } as const; @Injectable() @@ -102,7 +102,7 @@ export default class extends Endpoint { // eslint- isSensitive: ps.isSensitive, localOnly: ps.localOnly, roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction, - draft: ps.draft, + draft: false, }, me);} else { const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl); if (file === null) throw new ApiError(meta.errors.noSuchFile);