[Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW

Port 41ca3cdb37 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
ThibG 2020-03-31 14:10:18 +02:00 committed by Thibaut Girka
parent 989f819191
commit 0a02eade54

View file

@ -344,7 +344,6 @@ export default function compose(state = initialState, action) {
}); });
case COMPOSE_SPOILERNESS_CHANGE: case COMPOSE_SPOILERNESS_CHANGE:
return state.withMutations(map => { return state.withMutations(map => {
map.set('spoiler_text', '');
map.set('spoiler', !state.get('spoiler')); map.set('spoiler', !state.get('spoiler'));
map.set('idempotencyKey', uuid()); map.set('idempotencyKey', uuid());