mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-21 23:23:14 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user