1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-26 02:30:28 +00:00

Change language to be carried over on reply ()

In most cases, replies to a toot are written in the same language as the
toot being replied to.
This commit is contained in:
Claire 2022-05-31 05:53:43 +02:00 committed by GitHub
parent 2f6416db53
commit 14d7cf39f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'));