Smarter scope copy

This commit is contained in:
Sol Fisher Romanoff 2022-07-07 19:53:13 +03:00
parent 3dac486688
commit 7af3ef4913
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -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