diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-02-06 22:44:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-02-06 22:44:55 +0900 |
| commit | 96bc17aa1014983d5e6bf8b4c05d898156995a0d (patch) | |
| tree | fdf7c68bdbf3784988351004127db988d7c40c29 /src/server/api/endpoints/meta.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.gz sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.bz2 sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.zip | |
Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 91cb095c92..d08d0b0734 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -46,7 +46,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { description: instance.description, langs: instance.langs, - secure: config.https != null, + secure: config.https.isJust(), machine: os.hostname(), os: os.platform(), node: process.version, @@ -83,9 +83,9 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { registration: !instance.disableRegistration, localTimeLine: !instance.disableLocalTimeline, globalTimeLine: !instance.disableGlobalTimeline, - elasticsearch: config.elasticsearch ? true : false, + elasticsearch: config.elasticsearch.isJust(), recaptcha: instance.enableRecaptcha, - objectStorage: config.drive && config.drive.storage === 'minio', + objectStorage: config.drive.storage === 'minio', twitter: instance.enableTwitterIntegration, github: instance.enableGithubIntegration, discord: instance.enableDiscordIntegration, |