mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-21 15:13:20 +01:00
Small ts fix
This commit is contained in:
parent
088f0fe094
commit
e36269d134
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user