From 4d9d10ea81a9f6c5860dc6fd2308820c9041d4c9 Mon Sep 17 00:00:00 2001 From: "Renato \"Lond\" Cerqueira" Date: Thu, 31 Oct 2024 10:37:31 +0100 Subject: [PATCH] [Glitch] Fix 'unknown' media attachment rendering in detailed view Port 01e25af2e320bd79955b83cc986eef2cd64b3e2a to glitch-soc Signed-off-by: Claire --- .../glitch/features/status/components/detailed_status.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx index 7a7c98156b..0b08e88cf8 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx @@ -196,7 +196,7 @@ export const DetailedStatus: React.FC<{ ) { media.push(); } else if ( - ['image', 'gifv'].includes( + ['image', 'gifv', 'unknown'].includes( status.getIn(['media_attachments', 0, 'type']) as string, ) || status.get('media_attachments').size > 1