[Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW
Port cf1fa73347c9ca2b1c4f14521e990feba7509e2e to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
		
							parent
							
								
									dcf841545d
								
							
						
					
					
						commit
						9175ebf20c
					
				@ -344,7 +344,6 @@ export default function compose(state = initialState, action) {
 | 
			
		||||
    });
 | 
			
		||||
  case COMPOSE_SPOILERNESS_CHANGE:
 | 
			
		||||
    return state.withMutations(map => {
 | 
			
		||||
      map.set('spoiler_text', '');
 | 
			
		||||
      map.set('spoiler', !state.get('spoiler'));
 | 
			
		||||
      map.set('idempotencyKey', uuid());
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user