From de945eef63a2a89b646e4334e73d6ff47723b91a 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 d1d955395f..9780720d42 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