Small ts fix

This commit is contained in:
Marcel Hellkamp 2024-06-06 11:27:11 +02:00
parent 088f0fe094
commit e36269d134

View File

@ -251,10 +251,10 @@ function findMedia(status: MastodonStatus) {
const preview = m.preview_url ?? undefined
switch (m.type) {
case "image":
return { type: "image", url, href:url, preview, alt }
return { type: "image", url, preview, alt }
case "video":
case "gifv":
return { type: "video", url, href:url, preview, alt }
return { type: "video", url, preview, alt }
case "audio":
case "unknown":
return