mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-24 14:54:13 +00:00
Change default reply language to be default language when replying to a translated reply (#22272)
Fixes #22250
This commit is contained in:
parent
736b4283b0
commit
f70bdba926
|
@ -330,8 +330,10 @@ export default function compose(state = initialState, action) {
|
|||
map.set('preselectDate', new Date());
|
||||
map.set('idempotencyKey', uuid());
|
||||
|
||||
if (action.status.get('language')) {
|
||||
if (action.status.get('language') && !action.status.has('translation')) {
|
||||
map.set('language', action.status.get('language'));
|
||||
} else {
|
||||
map.set('language', state.get('default_language'));
|
||||
}
|
||||
|
||||
if (action.status.get('spoiler_text').length > 0) {
|
||||
|
|
Loading…
Reference in a new issue