From 14d7cf39f42e23445c70e2e1f26c7b3cd1fab306 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 31 May 2022 05:53:43 +0200 Subject: [PATCH] Change language to be carried over on reply (#18557) In most cases, replies to a toot are written in the same language as the toot being replied to. --- app/javascript/mastodon/reducers/compose.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index d7478c33d..7aac87b5c 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -328,6 +328,10 @@ export default function compose(state = initialState, action) { map.set('preselectDate', new Date()); map.set('idempotencyKey', uuid()); + if (action.status.get('language')) { + map.set('language', action.status.get('language')); + } + if (action.status.get('spoiler_text').length > 0) { map.set('spoiler', true); map.set('spoiler_text', action.status.get('spoiler_text'));