diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 5ad1709c..d0765541 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -343,6 +343,7 @@ const PostStatusForm = { }, clearStatus () { const config = this.$store.getters.mergedConfig + const postLanguage = config.postLanguage || interfaceToISOLanguage(config.interfaceLanguage) this.newStatus = { status: '', spoilerText: '', @@ -350,11 +351,14 @@ const PostStatusForm = { nsfw: !!config.sensitiveByDefault, visibility: this.suggestedVisibility(), contentType: config.postContentType, - language: this.suggestedLanguage(), + language: postLanguage, poll: {}, mediaDescriptions: {} } - this.$refs.scopeselector.currentScope = this.newStatus.visibility + const scopeselector = this.$refs.scopeselector + if (scopeselector) { + scopeselector.currentScope = this.newStatus.visibility + } this.pollFormVisible = false this.$refs.mediaUpload && this.$refs.mediaUpload.clearFile() this.clearPollForm()