From 7b5003b7d27cd5292f130627c922d0702fd29f63 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 18 Feb 2024 23:20:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20nodeinfo=E3=81=ABenableMcaptcha=E3=81=A8?= =?UTF-8?q?enableTurnstile=E3=81=8C=E7=84=A1=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 9 +++++++++ packages/backend/src/models/Meta.ts | 2 ++ packages/backend/src/server/NodeinfoServerService.ts | 2 ++ 3 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32c9bd0aec9f..09f0dbd09b63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,15 @@ --> +## 202x.x.x (unreleased) + +### General + +### Client + +### Server +- Fix: nodeinfoにenableMcaptchaとenableTurnstileが無いのを修正 + ## 2024.2.0 ### Note diff --git a/packages/backend/src/models/Meta.ts b/packages/backend/src/models/Meta.ts index 6ed0ec6ce50d..66f19ce1975c 100644 --- a/packages/backend/src/models/Meta.ts +++ b/packages/backend/src/models/Meta.ts @@ -253,6 +253,8 @@ export class MiMeta { }) public turnstileSecretKey: string | null; + // chaptcha系を追加した際にはnodeinfoのレスポンスに追加するのを忘れないようにすること + @Column('enum', { enum: ['none', 'all', 'local', 'remote'], default: 'none', diff --git a/packages/backend/src/server/NodeinfoServerService.ts b/packages/backend/src/server/NodeinfoServerService.ts index 81318ab5ac95..c1e5af08c903 100644 --- a/packages/backend/src/server/NodeinfoServerService.ts +++ b/packages/backend/src/server/NodeinfoServerService.ts @@ -117,6 +117,8 @@ export class NodeinfoServerService { emailRequiredForSignup: meta.emailRequiredForSignup, enableHcaptcha: meta.enableHcaptcha, enableRecaptcha: meta.enableRecaptcha, + enableMcaptcha: meta.enableMcaptcha, + enableTurnstile: meta.enableTurnstile, maxNoteTextLength: MAX_NOTE_TEXT_LENGTH, enableEmail: meta.enableEmail, enableServiceWorker: meta.enableServiceWorker,