Skip to content

Commit

Permalink
fix: nodeinfoにenableMcaptchaとenableTurnstileが無い (#13387)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Feb 18, 2024
1 parent b0030d1 commit 0b636d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
-->

## 202x.x.x (unreleased)

### General

### Client

### Server
- Fix: nodeinfoにenableMcaptchaとenableTurnstileが無いのを修正

## 2024.2.0

### Note
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/models/Meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export class MiMeta {
})
public turnstileSecretKey: string | null;

// chaptcha系を追加した際にはnodeinfoのレスポンスに追加するのを忘れないようにすること

@Column('enum', {
enum: ['none', 'all', 'local', 'remote'],
default: 'none',
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/server/NodeinfoServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0b636d1

Please sign in to comment.