diff --git a/src/client/app/common/views/components/signin.vue b/src/client/app/common/views/components/signin.vue index 6ea7f652d..c1a7522b0 100644 --- a/src/client/app/common/views/components/signin.vue +++ b/src/client/app/common/views/components/signin.vue @@ -12,9 +12,9 @@ {{ signing ? $t('signing-in') : $t('signin') }} -

{{ $t('signin-with-twitter') }}

-

{{ $t('signin-with-github') }}

-

{{ $t('signin-with-discord') /* TODO: Make these layouts better */ }}

+

{{ $t('signin-with-twitter') }}

+

{{ $t('signin-with-github') }}

+

{{ $t('signin-with-discord') /* TODO: Make these layouts better */ }}

@@ -41,9 +41,15 @@ export default Vue.extend({ password: '', token: '', apiUrl, - host: toUnicode(host) + host: toUnicode(host), + meta: null }; }, + created() { + this.$root.getMeta().then(meta => { + this.meta = meta; + }); + }, methods: { onUsernameChange() { this.$root.api('users/show', { diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 56386cc1f..9846e9595 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -68,6 +68,10 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { maxNoteTextLength: instance.maxNoteTextLength, emojis: emojis, + + enableTwitterIntegration: instance.enableTwitterIntegration, + enableGithubIntegration: instance.enableGithubIntegration, + enableDiscordIntegration: instance.enableDiscordIntegration, }; if (ps.detail) { @@ -89,13 +93,10 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { response.hidedTags = instance.hidedTags; response.recaptchaSecretKey = instance.recaptchaSecretKey; response.proxyAccount = instance.proxyAccount; - response.enableTwitterIntegration = instance.enableTwitterIntegration; response.twitterConsumerKey = instance.twitterConsumerKey; response.twitterConsumerSecret = instance.twitterConsumerSecret; - response.enableGithubIntegration = instance.enableGithubIntegration; response.githubClientId = instance.githubClientId; response.githubClientSecret = instance.githubClientSecret; - response.enableDiscordIntegration = instance.enableDiscordIntegration; response.discordClientId = instance.discordClientId; response.discordClientSecret = instance.discordClientSecret; }