From e98e9f45815e93a2e7352d7aba233b7f7eb0c32d Mon Sep 17 00:00:00 2001 From: Kath <55346310+Kathund@users.noreply.github.com> Date: Thu, 8 Feb 2024 12:04:24 +0800 Subject: [PATCH] fix(discord): Video links dont embed --- src/views/pages/file.ejs | 8 +++++++- src/views/pages/missingFile.ejs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/pages/file.ejs b/src/views/pages/file.ejs index 92bcb91..31783d2 100644 --- a/src/views/pages/file.ejs +++ b/src/views/pages/file.ejs @@ -3,6 +3,7 @@ + ShareX-API | <%= data.name %>.<%= data.fileExtension %> @@ -10,9 +11,14 @@ - ShareX-API | <%= data.name %>.<%= data.fileExtension %> + + <% if (img.endsWith('.mp4')) { %> + + <% } else { %> + + <% } %> diff --git a/src/views/pages/missingFile.ejs b/src/views/pages/missingFile.ejs index d64b541..a7253d9 100644 --- a/src/views/pages/missingFile.ejs +++ b/src/views/pages/missingFile.ejs @@ -5,8 +5,8 @@ - ShareX-API | Missing File +