Smarter scope copy #28

Merged
floatingghost merged 2 commits from nbsp/pleroma-fe:smart-scope into develop 2022-07-12 09:04:29 +00:00
Showing only changes of commit 7af3ef4913 - Show all commits

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