aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-12-18 23:31:10 +0300
committerHenry Jameson <me@hjkos.com>2018-12-18 23:31:10 +0300
commitc7514be46fd9dbffdeb92cd01799a8dc6497011b (patch)
treec62555a7f69877d5e86dec483d333025df0c6175 /src/components/post_status_form
parentf62ff2d894d87c7e9c200687eb2a91bcb111e7e1 (diff)
Fixed some settings not using defaults from instance config. Made some parts of
code more readable
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 0ce2aff0..89091f8e 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -41,12 +41,16 @@ const PostStatusForm = {
const preset = this.$route.query.message
let statusText = preset || ''
+ const scopeCopy = typeof this.$store.state.config.scopeCopy === 'undefined'
+ ? this.$store.state.instance.scopeCopy
+ : this.$store.state.config.scopeCopy
+
if (this.replyTo) {
const currentUser = this.$store.state.users.currentUser
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
}
- const scope = (this.copyMessageScope && this.$store.state.config.scopeCopy || this.copyMessageScope === 'direct')
+ const scope = (this.copyMessageScope && scopeCopy || this.copyMessageScope === 'direct')
? this.copyMessageScope
: this.$store.state.users.currentUser.default_scope