From 7af3ef491331dbe1ea74149a5c2a0715435366a1 Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Thu, 7 Jul 2022 19:53:13 +0300 Subject: [PATCH] Smarter scope copy --- src/components/post_status_form/post_status_form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 52b69fd1..d249f34a 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -119,7 +119,9 @@ const PostStatusForm = { statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser) } - const scope = ((this.copyMessageScope && scopeCopy) || this.copyMessageScope === 'direct') + const scope = (this.copyMessageScope && ( + (this.copyMessageScope !== 'public' && this.$store.state.users.currentUser.default_scope !== 'private' && scopeCopy) || + this.copyMessageScope === 'direct')) ? this.copyMessageScope : this.$store.state.users.currentUser.default_scope