forked from mirrors/akkoma-fe
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:
parent
6669fe0cfa
commit
2fcaae4c05
1 changed files with 1 additions and 2 deletions
|
|
@ -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: {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue