mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 20:45:03 +01:00
Fix sensitive
flag not being removed when removing CW in new compose form (#29248)
This commit is contained in:
parent
ad16362efe
commit
c645490d55
@ -315,8 +315,8 @@ export default function compose(state = initialState, action) {
|
|||||||
map.set('spoiler', !state.get('spoiler'));
|
map.set('spoiler', !state.get('spoiler'));
|
||||||
map.set('idempotencyKey', uuid());
|
map.set('idempotencyKey', uuid());
|
||||||
|
|
||||||
if (!state.get('sensitive') && state.get('media_attachments').size >= 1) {
|
if (state.get('media_attachments').size >= 1 && !state.get('default_sensitive')) {
|
||||||
map.set('sensitive', true);
|
map.set('sensitive', !state.get('spoiler'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
case COMPOSE_SPOILER_TEXT_CHANGE:
|
case COMPOSE_SPOILER_TEXT_CHANGE:
|
||||||
|
Loading…
Reference in New Issue
Block a user