fix(backend): api/metaのfeaturesの下位互換性 (MisskeyIO#487)
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user