From c2862049a223b0ed40005c0a0a337b9ab029bf53 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Tue, 22 Oct 2024 10:31:53 +0200 Subject: [PATCH] [Glitch] Fix 'unknown' media attachment type rendering Port 346cdb998c8b8519292a0a1633a28a3938665f44 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index a8da05171e..14dee31640 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -651,7 +651,7 @@ class Status extends ImmutablePureComponent { media={status.get('media_attachments')} />, ); - } else if (['image', 'gifv'].includes(status.getIn(['media_attachments', 0, 'type'])) || status.get('media_attachments').size > 1) { + } else if (['image', 'gifv', 'unknown'].includes(status.getIn(['media_attachments', 0, 'type'])) || status.get('media_attachments').size > 1) { media.push( {Component => (