Browse Source

Change default reply language to be default language when replying to a translated reply (#22272)

Fixes #22250
closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
f70bdba926
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/mastodon/reducers/compose.js

+ 3
- 1
app/javascript/mastodon/reducers/compose.js View File

@ -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…
Cancel
Save