Skip to content

Commit

Permalink
Small ts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Jun 6, 2024
1 parent 088f0fe commit e36269d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e36269d

Please sign in to comment.