Skip to content
Snippets Groups Projects
Unverified Commit 14d7cf39 authored by Claire's avatar Claire Committed by GitHub
Browse files

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.
parent 2f6416db
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment