From 9fe29b5e8e63d2678338a0bf0c71c60cfaa552ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Tue, 27 Feb 2024 23:56:36 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend):=20api/meta=E3=81=AEfeatures?= =?UTF-8?q?=E3=81=AE=E4=B8=8B=E4=BD=8D=E4=BA=92=E6=8F=9B=E6=80=A7=20(Missk?= =?UTF-8?q?eyIO#487)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/core/entities/MetaEntityService.ts | 3 +++ packages/backend/src/models/json-schema/meta.ts | 15 +++++++++++++++ packages/misskey-js/src/autogen/types.ts | 6 ++++++ 3 files changed, 24 insertions(+) diff --git a/packages/backend/src/core/entities/MetaEntityService.ts b/packages/backend/src/core/entities/MetaEntityService.ts index 90e712502..b21185183 100644 --- a/packages/backend/src/core/entities/MetaEntityService.ts +++ b/packages/backend/src/core/entities/MetaEntityService.ts @@ -137,8 +137,11 @@ export class MetaEntityService { registration: !instance.disableRegistration, emailRequiredForSignup: instance.emailRequiredForSignup, hCaptcha: instance.enableHcaptcha, + hcaptcha: instance.enableHcaptcha, mCaptcha: instance.enableMcaptcha, + mcaptcha: instance.enableMcaptcha, reCaptcha: instance.enableRecaptcha, + recaptcha: instance.enableRecaptcha, turnstile: instance.enableTurnstile, objectStorage: instance.useObjectStorage, serviceWorker: instance.enableServiceWorker, diff --git a/packages/backend/src/models/json-schema/meta.ts b/packages/backend/src/models/json-schema/meta.ts index 4d487959e..150b94a18 100644 --- a/packages/backend/src/models/json-schema/meta.ts +++ b/packages/backend/src/models/json-schema/meta.ts @@ -267,14 +267,29 @@ export const packedMetaDetailedOnlySchema = { type: 'boolean', optional: false, nullable: false, }, + hcaptcha: { + type: 'boolean', + optional: false, nullable: false, + description: 'Alias of hCaptcha', + }, mCaptcha: { type: 'boolean', optional: false, nullable: false, }, + mcaptcha: { + type: 'boolean', + optional: false, nullable: false, + description: 'Alias of mCaptcha', + }, reCaptcha: { type: 'boolean', optional: false, nullable: false, }, + recaptcha: { + type: 'boolean', + optional: false, nullable: false, + description: 'Alias of reCaptcha', + }, turnstile: { type: 'boolean', optional: false, nullable: false, diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index aa9544d6a..421656821 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -4958,8 +4958,14 @@ export type components = { localTimeline: boolean; globalTimeline: boolean; hCaptcha: boolean; + /** @description Alias of hCaptcha */ + hcaptcha: boolean; mCaptcha: boolean; + /** @description Alias of mCaptcha */ + mcaptcha: boolean; reCaptcha: boolean; + /** @description Alias of reCaptcha */ + recaptcha: boolean; turnstile: boolean; objectStorage: boolean; serviceWorker: boolean;