diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2020-05-05 10:22:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 10:22:49 +0900 |
| commit | 4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e (patch) | |
| tree | 8bad0d079776b8fd3e20cfe65b44f205a0763287 /src/server/api/endpoints/meta.ts | |
| parent | chore: Update dependencies :rocket: (diff) | |
| parent | Update hcaptcha.d.ts (diff) | |
| download | misskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.tar.gz misskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.tar.bz2 misskey-4cccdb8a98ffd69584c7139545ecd17bfb3b7a3e.zip | |
Merge pull request #6303 from syuilo/features/hcaptcha
Add support for hCaptcha
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 179355489b..eefc370124 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -122,6 +122,8 @@ export default define(meta, async (ps, me) => { driveCapacityPerRemoteUserMb: instance.remoteDriveCapacityMb, cacheRemoteFiles: instance.cacheRemoteFiles, proxyRemoteFiles: instance.proxyRemoteFiles, + enableHcaptcha: instance.enableHcaptcha, + hcaptchaSiteKey: instance.hcaptchaSiteKey, enableRecaptcha: instance.enableRecaptcha, recaptchaSiteKey: instance.recaptchaSiteKey, swPublickey: instance.swPublicKey, @@ -149,6 +151,7 @@ export default define(meta, async (ps, me) => { localTimeLine: !instance.disableLocalTimeline, globalTimeLine: !instance.disableGlobalTimeline, elasticsearch: config.elasticsearch ? true : false, + hcaptcha: instance.enableHcaptcha, recaptcha: instance.enableRecaptcha, objectStorage: instance.useObjectStorage, twitter: instance.enableTwitterIntegration, @@ -164,6 +167,7 @@ export default define(meta, async (ps, me) => { response.pinnedUsers = instance.pinnedUsers; response.hiddenTags = instance.hiddenTags; response.blockedHosts = instance.blockedHosts; + response.hcaptchaSecretKey = instance.hcaptchaSecretKey; response.recaptchaSecretKey = instance.recaptchaSecretKey; response.proxyAccountId = instance.proxyAccountId; response.twitterConsumerKey = instance.twitterConsumerKey; |