From 7413634734d31b4558a5fbaed01d8d2a88c20742 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Oct 2021 01:16:59 +0900 Subject: リアクション一覧の公開をオプトインに MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/settings/privacy.vue | 7 +++++++ src/client/pages/user/index.vue | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/pages/settings/privacy.vue b/src/client/pages/settings/privacy.vue index 7756158578..2a60ae1f46 100644 --- a/src/client/pages/settings/privacy.vue +++ b/src/client/pages/settings/privacy.vue @@ -5,6 +5,10 @@ {{ $ts.autoAcceptFollowed }} + + {{ $ts.makeReactionsPublic }} + + {{ $ts.hideOnlineStatus }} @@ -64,6 +68,7 @@ export default defineComponent({ noCrawle: false, isExplorable: false, hideOnlineStatus: false, + publicReactions: false, } }, @@ -80,6 +85,7 @@ export default defineComponent({ this.noCrawle = this.$i.noCrawle; this.isExplorable = this.$i.isExplorable; this.hideOnlineStatus = this.$i.hideOnlineStatus; + this.publicReactions = this.$i.publicReactions; }, mounted() { @@ -94,6 +100,7 @@ export default defineComponent({ noCrawle: !!this.noCrawle, isExplorable: !!this.isExplorable, hideOnlineStatus: !!this.hideOnlineStatus, + publicReactions: !!this.publicReactions, }); } } diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue index 6811dff2db..f74bf49883 100644 --- a/src/client/pages/user/index.vue +++ b/src/client/pages/user/index.vue @@ -270,12 +270,12 @@ export default defineComponent({ title: this.$ts.overview, icon: 'fas fa-home', onClick: () => { this.$router.push('/@' + getAcct(this.user)); }, - }, { + }, ...(this.$i && (this.$i.id === this.user.id)) || this.user.publicReactions ? [{ active: this.page === 'reactions', title: this.$ts.reaction, icon: 'fas fa-laugh', onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/reactions'); }, - }, { + }] : [], { active: this.page === 'clips', title: this.$ts.clips, icon: 'fas fa-paperclip', -- cgit v1.2.3-freya