aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorHenry <spam@hjkos.com>2018-11-26 01:50:54 +0000
committerHenry <spam@hjkos.com>2018-11-26 01:50:54 +0000
commit91272dc5558e1326dac872f927dc8da7f9109cd0 (patch)
tree42b479fa25d0fe4c39401f9759e2f35323f86b61 /src/components/post_status_form
parentf1a23f2b6edb0858890c82cf42c8b6d835102d56 (diff)
parentb948234aec2ec1d140a46303c09d24424262bd66 (diff)
Merge branch 'feature/scope_preferences' into 'develop'
Make visibility copying and subject copying configurable Closes #135 See merge request pleroma/pleroma-fe!353
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index c0e34d72..fa86ee59 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -24,7 +24,7 @@ const PostStatusForm = {
'replyTo',
'repliedUser',
'attentions',
- 'messageScope',
+ 'copyMessageScope',
'subject'
],
components: {
@@ -46,6 +46,10 @@ const PostStatusForm = {
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
}
+ const scope = (this.copyMessageScope && this.$store.state.config.copyScope || this.copyMessageScope === 'direct')
+ ? this.copyMessageScope
+ : this.$store.state.users.currentUser.default_scope
+
return {
dropFiles: [],
submitDisabled: false,
@@ -58,7 +62,7 @@ const PostStatusForm = {
contentType: 'text/plain',
nsfw: false,
files: [],
- visibility: this.messageScope || this.$store.state.users.currentUser.default_scope
+ visibility: scope
},
caret: 0
}