[Glitch] Fix 'unknown' media attachment rendering in detailed view
Port 01e25af2e3 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									95c95da891
								
							
						
					
					
						commit
						4d9d10ea81
					
				| 
						 | 
				
			
			@ -196,7 +196,7 @@ export const DetailedStatus: React.FC<{
 | 
			
		|||
    ) {
 | 
			
		||||
      media.push(<AttachmentList media={status.get('media_attachments')} />);
 | 
			
		||||
    } else if (
 | 
			
		||||
      ['image', 'gifv'].includes(
 | 
			
		||||
      ['image', 'gifv', 'unknown'].includes(
 | 
			
		||||
        status.getIn(['media_attachments', 0, 'type']) as string,
 | 
			
		||||
      ) ||
 | 
			
		||||
      status.get('media_attachments').size > 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue