Bug: fix discord video embeds

This commit is contained in:
May 2023-08-27 17:43:17 -07:00
parent 5afc025851
commit df939f38f9

View file

@ -118,7 +118,7 @@ app.get("/download/:fileId",(req,res) => {
) )
) )
+ ( + (
fileOwner?.embed?.largeImage && file.visibility!="anonymous" fileOwner?.embed?.largeImage && file.visibility!="anonymous" && file.mime.startsWith("image/")
? `<meta name="twitter:card" content="summary_large_image">` ? `<meta name="twitter:card" content="summary_large_image">`
: "" : ""
) )
@ -161,4 +161,4 @@ app.listen(process.env.MONOFILE_PORT || 3000,function() {
console.log("Web OK!") console.log("Web OK!")
}) })
client.login(process.env.TOKEN) client.login(process.env.TOKEN)