mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
Bug: fix discord video embeds
This commit is contained in:
parent
5afc025851
commit
df939f38f9
|
@ -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">`
|
||||||
: ""
|
: ""
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue