]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Change language to be carried over on reply
authorClaire <claire.github-309c@sitedethib.com>
Tue, 31 May 2022 03:53:43 +0000 (05:53 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:49 +0000 (00:27 -0400)
Port 14d7cf39f42e23445c70e2e1f26c7b3cd1fab306 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/reducers/compose.js

index d0aeaa1f05b76b1c82202504dc36ff2e62cf32f2..2ef08b2a6bc4923d13e726a0807cba45f75d0404 100644 (file)
@@ -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)) {