Add an icon to highlight polls behind a Content Warning
This commit is contained in:
		
							parent
							
								
									fefacb7b7a
								
							
						
					
					
						commit
						1bb23100b1
					
				@ -440,6 +440,7 @@ export default class Status extends ImmutablePureComponent {
 | 
				
			|||||||
    attachments = status.get('media_attachments');
 | 
					    attachments = status.get('media_attachments');
 | 
				
			||||||
    if (status.get('poll')) {
 | 
					    if (status.get('poll')) {
 | 
				
			||||||
      media = <PollContainer pollId={status.get('poll')} />;
 | 
					      media = <PollContainer pollId={status.get('poll')} />;
 | 
				
			||||||
 | 
					      mediaIcon = 'tasks';
 | 
				
			||||||
    } else if (attachments.size > 0) {
 | 
					    } else if (attachments.size > 0) {
 | 
				
			||||||
      if (muted || attachments.some(item => item.get('type') === 'unknown')) {
 | 
					      if (muted || attachments.some(item => item.get('type') === 'unknown')) {
 | 
				
			||||||
        media = (
 | 
					        media = (
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user