summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-19 19:15:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-19 19:15:29 +0900
commitc9de5b65d4d234899725ba2c7f884041bd3d463b (patch)
tree10cbf0f6845fc1648f1c35942b329b0f73a4a46c /src/server
parentMerge pull request #2348 from mei23/mei-0819-nsfw3 (diff)
downloadsharkey-c9de5b65d4d234899725ba2c7f884041bd3d463b.tar.gz
sharkey-c9de5b65d4d234899725ba2c7f884041bd3d463b.tar.bz2
sharkey-c9de5b65d4d234899725ba2c7f884041bd3d463b.zip
wip
Diffstat (limited to 'src/server')
-rw-r--r--src/server/api/endpoints/meta.ts7
1 files changed, 6 insertions, 1 deletions
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
});
});