diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-13 19:41:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 19:41:53 +0100 |
commit | f70bdba9264bd7c572cee3c45421733919b7d03c (patch) | |
tree | 97e0519b9ee08abcfe4cfd463cc5f0882d2f91ae /app/javascript | |
parent | 736b4283b0936134e83092f8b16d686f6478a51f (diff) |
Change default reply language to be default language when replying to a translated reply (#22272)
Fixes #22250
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/reducers/compose.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index 1dafb07fd..9496b56f8 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -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) { |