From: Claire Date: Tue, 31 May 2022 03:53:43 +0000 (+0200) Subject: [Glitch] Change language to be carried over on reply X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f0c2dbe270c432b17733d9ad9ddf9a5e9b711859;p=mastodon.git [Glitch] Change language to be carried over on reply Port 14d7cf39f42e23445c70e2e1f26c7b3cd1fab306 to glitch-soc Signed-off-by: Claire --- diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index d0aeaa1f0..2ef08b2a6 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -419,6 +419,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) { let spoiler_text = action.status.get('spoiler_text'); if (action.prependCWRe && !spoiler_text.match(/^re[: ]/i)) {