mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
remove unnecessary coalescing
This commit is contained in:
parent
6ff90d63bb
commit
cf4dc8627b
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ function renderAttachment(
|
||||||
const url = tags.find(([name]) => name === 'url')?.[1];
|
const url = tags.find(([name]) => name === 'url')?.[1];
|
||||||
|
|
||||||
const m = tags.find(([name]) => name === 'm')?.[1] ?? getUrlMediaType(url!);
|
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 cid = tags.find(([name]) => name === 'cid')?.[1];
|
||||||
const dim = tags.find(([name]) => name === 'dim')?.[1];
|
const dim = tags.find(([name]) => name === 'dim')?.[1];
|
||||||
const blurhash = tags.find(([name]) => name === 'blurhash')?.[1];
|
const blurhash = tags.find(([name]) => name === 'blurhash')?.[1];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue