diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-07 21:02:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-07 21:02:33 +0900 |
| commit | 5448c22031d66cc020323bf4c4d1701889a46485 (patch) | |
| tree | e14772d48d982c6a7d9cebeed497c16373e2e303 /src/server/api/endpoints | |
| parent | Fix #4179 (diff) | |
| download | sharkey-5448c22031d66cc020323bf4c4d1701889a46485.tar.gz sharkey-5448c22031d66cc020323bf4c4d1701889a46485.tar.bz2 sharkey-5448c22031d66cc020323bf4c4d1701889a46485.zip | |
Revert 96bc17aa1014983d5e6bf8b4c05d898156995a0d
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 6 | ||||
| -rw-r--r-- | src/server/api/endpoints/users/recommendation.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index d08d0b0734..91cb095c92 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.isJust(), + secure: config.https != null, 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.isJust(), + elasticsearch: config.elasticsearch ? true : false, recaptcha: instance.enableRecaptcha, - objectStorage: config.drive.storage === 'minio', + objectStorage: config.drive && config.drive.storage === 'minio', twitter: instance.enableTwitterIntegration, github: instance.enableGithubIntegration, discord: instance.enableDiscordIntegration, diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index d07c4b08f0..e3a03888b6 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -50,7 +50,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { request({ url: url, - proxy: config.proxy.getOrElse(null), + proxy: config.proxy, timeout: timeout, json: true, followRedirect: true, |