mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-31 20:12:55 -05:00
[Glitch] Fix sensitive
flag not being removed when removing CW in new compose form
Port c645490d553124d800d30488595f7d2d9d61584d to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
200e11ae88
commit
ba67ea3d12
@ -395,8 +395,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…
x
Reference in New Issue
Block a user