[Glitch] Fix 'unknown' media attachment rendering in detailed view

Port 01e25af2e320bd79955b83cc986eef2cd64b3e2a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renato "Lond" Cerqueira 2024-10-31 10:37:31 +01:00 committed by Claire
parent 9a7030fb69
commit de945eef63
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export const DetailedStatus: React.FC<{
) { ) {
media.push(<AttachmentList media={status.get('media_attachments')} />); media.push(<AttachmentList media={status.get('media_attachments')} />);
} else if ( } else if (
['image', 'gifv'].includes( ['image', 'gifv', 'unknown'].includes(
status.getIn(['media_attachments', 0, 'type']) as string, status.getIn(['media_attachments', 0, 'type']) as string,
) || ) ||
status.get('media_attachments').size > 1 status.get('media_attachments').size > 1