From c9de5b65d4d234899725ba2c7f884041bd3d463b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Aug 2018 19:15:29 +0900 Subject: wip --- src/server/api/endpoints/meta.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 000a56024d..505ff60068 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -20,6 +20,9 @@ export default () => new Promise(async (res, rej) => { version: pkg.version, clientVersion: client.version, + name: config.name || 'Misskey', + description: config.description, + secure: config.https != null, machine: os.hostname(), os: os.platform(), @@ -29,6 +32,8 @@ export default () => new Promise(async (res, rej) => { cores: os.cpus().length }, broadcasts: meta.broadcasts, - disableRegistration: meta.disableRegistration + disableRegistration: meta.disableRegistration, + recaptchaSitekey: config.recaptcha.site_key, + swPublickey: config.sw.public_key }); }); -- cgit v1.2.3-freya