mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
chvfjn
This commit is contained in:
parent
2516643561
commit
306d642806
|
@ -6,6 +6,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>monofile</title>
|
<title>monofile</title>
|
||||||
|
|
||||||
|
$metaTags
|
||||||
|
|
||||||
<meta name="og:site_name" content="monofile $Version">
|
<meta name="og:site_name" content="monofile $Version">
|
||||||
<meta name="title" content="$FileName">
|
<meta name="title" content="$FileName">
|
||||||
<meta name="description" content="ID: $FileId">
|
<meta name="description" content="ID: $FileId">
|
||||||
|
|
|
@ -118,6 +118,7 @@ app.get("/download/:fileId",(req,res) => {
|
||||||
.replace(/\</g,"<")
|
.replace(/\</g,"<")
|
||||||
.replace(/\>/g,">")
|
.replace(/\>/g,">")
|
||||||
)
|
)
|
||||||
|
.replace(/\$metaTags/g,file.mime.startsWith("image/") ? `<meta name="og:image" content="https://${req.headers.host}/file/${req.params.fileId}" />` : "")
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue