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 0eb6f65dcb
commit 23f7b33eb4

View file

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