forked from treehouse/mastodon
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.rebase/4.0.0rc2
parent
2f6416db53
commit
14d7cf39f4
|
@ -328,6 +328,10 @@ export default function compose(state = initialState, action) {
|
||||||
map.set('preselectDate', new Date());
|
map.set('preselectDate', new Date());
|
||||||
map.set('idempotencyKey', uuid());
|
map.set('idempotencyKey', uuid());
|
||||||
|
|
||||||
|
if (action.status.get('language')) {
|
||||||
|
map.set('language', action.status.get('language'));
|
||||||
|
}
|
||||||
|
|
||||||
if (action.status.get('spoiler_text').length > 0) {
|
if (action.status.get('spoiler_text').length > 0) {
|
||||||
map.set('spoiler', true);
|
map.set('spoiler', true);
|
||||||
map.set('spoiler_text', action.status.get('spoiler_text'));
|
map.set('spoiler_text', action.status.get('spoiler_text'));
|
||||||
|
|
Loading…
Reference in New Issue