diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 6eee23ce..ac3e7b23 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -341,17 +341,23 @@ const PostStatusForm = { this.saveDraft() }, clearStatus () { - const newStatus = this.newStatus + const config = this.$store.getters.mergedConfig + const postLanguage = config.postLanguage || interfaceToISOLanguage(config.interfaceLanguage) this.newStatus = { status: '', spoilerText: '', files: [], - visibility: newStatus.visibility, - contentType: newStatus.contentType, - language: newStatus.language, + nsfw: !!config.sensitiveByDefault, + visibility: this.suggestedVisibility(), + contentType: config.postContentType, + language: postLanguage, poll: {}, mediaDescriptions: {} } + const scopeselector = this.$refs.scopeselector + if (scopeselector) { + scopeselector.currentScope = this.newStatus.visibility + } this.pollFormVisible = false this.$refs.mediaUpload && this.$refs.mediaUpload.clearFile() this.clearPollForm() diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 085a06a2..1a56685b 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -195,6 +195,7 @@ :class="{ 'visibility-tray-edit': isEdit }" >