mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-28 16:36:27 -08:00
Oh.
This commit is contained in:
parent
b48d087b6b
commit
28ca9b2224
|
@ -156,11 +156,12 @@ app.get("/download/:fileId",(req,res) => {
|
||||||
: (
|
: (
|
||||||
file.mime.startsWith("video/")
|
file.mime.startsWith("video/")
|
||||||
? `<meta property="og:video:url" content="https://${req.headers.host}/cpt/${req.params.fileId}/video.${file.mime.split("/")[1] == "quicktime" ? "mov" : file.mime.split("/")[1]}" />
|
? `<meta property="og:video:url" content="https://${req.headers.host}/cpt/${req.params.fileId}/video.${file.mime.split("/")[1] == "quicktime" ? "mov" : file.mime.split("/")[1]}" />
|
||||||
<meta property="og:video:type" content="video.other">
|
<meta property="og:video:secure_url" content="https://${req.headers.host}/cpt/${req.params.fileId}/video.${file.mime.split("/")[1] == "quicktime" ? "mov" : file.mime.split("/")[1]}" />
|
||||||
|
<meta property="og:type" content="video.other">
|
||||||
<!-- honestly probably good enough for now -->
|
<!-- honestly probably good enough for now -->
|
||||||
<meta property="og:video:width" content="1280">
|
<meta property="og:video:width" content="1280">
|
||||||
<meta property="og:video:height" content="720">
|
<meta property="og:video:height" content="720">
|
||||||
<meta property="og:image" content="https://example.com/none.png">`
|
<meta property="twitter:image" content="0">`
|
||||||
: ""
|
: ""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue