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 const preview = m.preview_url ?? undefined
switch (m.type) { switch (m.type) {
case "image": case "image":
return { type: "image", url, href:url, preview, alt } return { type: "image", url, preview, alt }
case "video": case "video":
case "gifv": case "gifv":
return { type: "video", url, href:url, preview, alt } return { type: "video", url, preview, alt }
case "audio": case "audio":
case "unknown": case "unknown":
return return