[Glitch] Fix status mismatch of sensitive check
Port 691b827c87 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									02992b262a
								
							
						
					
					
						commit
						b2f452000b
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -578,6 +578,10 @@ export default function compose(state = initialState, action) { | ||||||
|       if (action.status.get('spoiler_text').length > 0) { |       if (action.status.get('spoiler_text').length > 0) { | ||||||
|         map.set('spoiler', true); |         map.set('spoiler', true); | ||||||
|         map.set('spoiler_text', action.status.get('spoiler_text')); |         map.set('spoiler_text', action.status.get('spoiler_text')); | ||||||
|  | 
 | ||||||
|  |         if (map.get('media_attachments').size >= 1) { | ||||||
|  |           map.set('sensitive', true); | ||||||
|  |         } | ||||||
|       } else { |       } else { | ||||||
|         map.set('spoiler', false); |         map.set('spoiler', false); | ||||||
|         map.set('spoiler_text', ''); |         map.set('spoiler_text', ''); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue