diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index a9984e1472..4df7280250 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -63,7 +63,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { cacheRemoteFiles: instance.cacheRemoteFiles, enableRecaptcha: instance.enableRecaptcha, recaptchaSiteKey: instance.recaptchaSiteKey, - swPublickey: config.sw ? config.sw.public_key : null, + swPublickey: null, bannerUrl: instance.bannerUrl, errorImageUrl: instance.errorImageUrl, maxNoteTextLength: instance.maxNoteTextLength, diff --git a/src/server/api/endpoints/sw/register.ts b/src/server/api/endpoints/sw/register.ts index 26427452fd..c5c003bded 100644 --- a/src/server/api/endpoints/sw/register.ts +++ b/src/server/api/endpoints/sw/register.ts @@ -34,7 +34,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { if (exist != null) { return res({ state: 'already-subscribed', - key: config.sw.public_key + key: config.sw.publicKey }); } @@ -47,6 +47,6 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { res({ state: 'subscribed', - key: config.sw.public_key + key: config.sw.publicKey }); }));