post_status_form: inherit language from parent

If I'm replying to a post in Klingon, chances are I'm going to write in
Klingon. This reduces friction for properly marking post language in a
conversation.
This commit is contained in:
novenary 2024-09-17 12:27:56 +03:00 committed by Jeder
parent 6669fe0cfa
commit 2fcaae4c05

View file

@ -343,7 +343,6 @@ const PostStatusForm = {
},
clearStatus () {
const config = this.$store.getters.mergedConfig
const postLanguage = config.postLanguage || interfaceToISOLanguage(config.interfaceLanguage)
this.newStatus = {
status: '',
spoilerText: '',
@ -351,7 +350,7 @@ const PostStatusForm = {
nsfw: !!config.sensitiveByDefault,
visibility: this.suggestedVisibility(),
contentType: config.postContentType,
language: postLanguage,
language: this.suggestedLanguage(),
poll: {},
mediaDescriptions: {}
}