From cf9f85eb2a9d3bf3253fd104658eae65f0667a5c Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Nov 2018 20:33:31 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=83=AB=E3=82=B5=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=81=8C=E3=82=AA?= =?UTF-8?q?=E3=83=95=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=AF=E3=83=A1=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E8=A8=AD=E5=AE=9A=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/common/views/components/profile-editor.vue | 6 +++++- src/server/api/endpoints/meta.ts | 10 ++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index 62d5d7a29..d5ba58ca7 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -67,7 +67,7 @@ -
+
{{ $t('email') }}
@@ -94,6 +94,7 @@ export default Vue.extend({ data() { return { host: toUnicode(host), + enableEmail: false, email: null, name: null, username: null, @@ -128,6 +129,9 @@ export default Vue.extend({ }, created() { + this.$root.getMeta().then(meta => { + this.enableEmail = meta.enableEmail; + }); this.email = this.$store.state.i.email; this.name = this.$store.state.i.name; this.username = this.$store.state.i.username; diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index d18e6a154..6ec5dfb88 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -66,16 +66,12 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { swPublickey: config.sw ? config.sw.public_key : null, bannerUrl: instance.bannerUrl, maxNoteTextLength: instance.maxNoteTextLength, - emojis: emojis, + enableEmail: instance.enableEmail, enableTwitterIntegration: instance.enableTwitterIntegration, enableGithubIntegration: instance.enableGithubIntegration, enableDiscordIntegration: instance.enableDiscordIntegration, - - enableExternalUserRecommendation: instance.enableExternalUserRecommendation, - externalUserRecommendationEngine: instance.externalUserRecommendationEngine, - externalUserRecommendationTimeout: instance.externalUserRecommendationTimeout }; if (ps.detail) { @@ -107,8 +103,10 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { response.githubClientSecret = instance.githubClientSecret; response.discordClientId = instance.discordClientId; response.discordClientSecret = instance.discordClientSecret; + response.enableExternalUserRecommendation = instance.enableExternalUserRecommendation; + response.externalUserRecommendationEngine = instance.externalUserRecommendationEngine; + response.externalUserRecommendationTimeout = instance.externalUserRecommendationTimeout; response.summalyProxy = instance.summalyProxy; - response.enableEmail = instance.enableEmail; response.email = instance.email; response.smtpSecure = instance.smtpSecure; response.smtpHost = instance.smtpHost;