mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
see if that fixes things lol
This commit is contained in:
parent
c25da84355
commit
eb1824a14e
|
@ -155,9 +155,7 @@ app.get("/download/:fileId",(req,res) => {
|
||||||
? `<meta name="og:image" content="https://${req.headers.host}/file/${req.params.fileId}" />`
|
? `<meta name="og:image" content="https://${req.headers.host}/file/${req.params.fileId}" />`
|
||||||
: (
|
: (
|
||||||
file.mime.startsWith("video/")
|
file.mime.startsWith("video/")
|
||||||
? `<meta name="og:video" content="https://${req.headers.host}/file/${req.params.fileId}" />
|
? `<meta name="og:video:url" content="https://${req.headers.host}/cpt/${req.params.fileId}/video.${file.mime.split("/")[1] == "quicktime" ? "mov" : file.mime.split("/")[1]}" />
|
||||||
<meta name="og:video:url" content="https://${req.headers.host}/file/${req.params.fileId}" />
|
|
||||||
<meta name="og:video:secure_url" content="https://${req.headers.host}/file/${req.params.fileId}">
|
|
||||||
<meta name="og:video:type" content="video.other">
|
<meta name="og:video: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">
|
||||||
|
|
Loading…
Reference in a new issue