From cf4dc8627b8fb50c724f680bd47174fd76fe8065 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Sun, 25 Aug 2024 16:25:36 +0530 Subject: [PATCH] remove unnecessary coalescing --- src/views/mastodon/attachments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastodon/attachments.ts b/src/views/mastodon/attachments.ts index 293b1499..9307ea82 100644 --- a/src/views/mastodon/attachments.ts +++ b/src/views/mastodon/attachments.ts @@ -10,7 +10,7 @@ function renderAttachment( const url = tags.find(([name]) => name === 'url')?.[1]; const m = tags.find(([name]) => name === 'm')?.[1] ?? getUrlMediaType(url!); - const alt = tags.find(([name]) => name === 'alt')?.slice(1).join(' ') || 'picture'; + const alt = tags.find(([name]) => name === 'alt')?.slice(1).join(' '); const cid = tags.find(([name]) => name === 'cid')?.[1]; const dim = tags.find(([name]) => name === 'dim')?.[1]; const blurhash = tags.find(([name]) => name === 'blurhash')?.[1];