From 513899e217d868147a0f012ff1d1067acf9f90f0 Mon Sep 17 00:00:00 2001 From: penginn-net <121443048+penginn-net@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:45:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=AF=E3=82=A8=E3=83=B3?= =?UTF-8?q?=E3=83=89=E5=88=86=E9=9B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_YOJO.md | 2 +- packages/backend/src/server/api/endpoints/emoji.ts | 7 +------ packages/cherrypick-js/src/autogen/types.ts | 2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/CHANGELOG_YOJO.md b/CHANGELOG_YOJO.md index 54c107e0a6..94f9784457 100644 --- a/CHANGELOG_YOJO.md +++ b/CHANGELOG_YOJO.md @@ -63,7 +63,7 @@ Cherrypick 4.11.1 - Fix: 通知APIがページ境界で重複する問題の修正 - Change: 絵文字を登録する際にシステムユーザーとして再アップロードするように (Cherry-picked from https://github.com/team-shahu/misskey/pull/11) -- Enhance: `api/emoji`で`host`を指定できるように + ### Misc ## 1.0.1 diff --git a/packages/backend/src/server/api/endpoints/emoji.ts b/packages/backend/src/server/api/endpoints/emoji.ts index 5963126f2c..ccfbda0d44 100644 --- a/packages/backend/src/server/api/endpoints/emoji.ts +++ b/packages/backend/src/server/api/endpoints/emoji.ts @@ -30,11 +30,6 @@ export const paramDef = { name: { type: 'string', }, - host: { - type: 'string', - nullable: true, - default: null, - }, }, required: ['name'], } as const; @@ -51,7 +46,7 @@ export default class extends Endpoint { // eslint- const emoji = await this.emojisRepository.findOneOrFail({ where: { name: ps.name, - host: ps.host ?? IsNull(), + host: IsNull(), }, }); diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts index 8d9c0ed574..0f3d2ab3ca 100644 --- a/packages/cherrypick-js/src/autogen/types.ts +++ b/packages/cherrypick-js/src/autogen/types.ts @@ -21294,8 +21294,6 @@ export type operations = { content: { 'application/json': { name: string; - /** @default null */ - host?: string | null; }; }; };