aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-09-25 15:16:26 +0300
committerHenry Jameson <me@hjkos.com>2018-09-25 15:16:26 +0300
commitef968d8e1e4f3194a0856fd93bc03d8030112b12 (patch)
treec7e88c628f9c7c3fa153ddeb0bd9f8b3b69a13ee /src/components/post_status_form
parent6165b7366a9f499fe83fd194f8e9f4742e37e9f1 (diff)
now it actually works
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js10
1 files changed, 8 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 a84e764c..804c4bc2 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,12 @@ const PostStatusForm = {
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
}
+ console.log(this.copyMessageScope)
+ const scope = (this.copyMessageScope && this.$store.state.config.copyScope || this.copyMessageScope === 'direct')
+ ? this.copyMessageScope
+ : this.$store.state.users.currentUser.default_scope
+
+ console.log(this)
return {
dropFiles: [],
submitDisabled: false,
@@ -58,7 +64,7 @@ const PostStatusForm = {
contentType: 'text/plain',
nsfw: false,
files: [],
- visibility: this.messageScope || this.$store.state.users.currentUser.default_scope
+ visibility: scope
},
caret: 0
}