fix: nodeinfoにenableMcaptchaとenableTurnstileが無い (#13387)

This commit is contained in:
anatawa12 2024-02-19 08:33:36 +09:00 committed by GitHub
parent b0030d148d
commit 0b636d1bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 0 deletions

View File

@ -12,6 +12,15 @@
-->
## 202x.x.x (unreleased)
### General
### Client
### Server
- Fix: nodeinfoにenableMcaptchaとenableTurnstileが無いのを修正
## 2024.2.0
### Note

View File

@ -253,6 +253,8 @@ export class MiMeta {
})
public turnstileSecretKey: string | null;
// chaptcha系を追加した際にはnodeinfoのレスポンスに追加するのを忘れないようにすること
@Column('enum', {
enum: ['none', 'all', 'local', 'remote'],
default: 'none',

View File

@ -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,