Skip to content

Commit

Permalink
fix(discord): Video links dont embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 8, 2024
1 parent a026ad1 commit e98e9f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/views/pages/file.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ShareX-API | <%= data.name %>.<%= data.fileExtension %></title>
<link rel="icon" type="image/x-icon" href="../files/favicon.ico">
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content="<%= img %>" />
<link rel="stylesheet" href="../css/index.css">
<meta name="theme-color" content="#000000" />
<meta property="og:description" content="" />
<meta property="og:site_name" content="">
<title>ShareX-API | <%= data.name %>.<%= data.fileExtension %></title>
<meta name="robots" content="noindex">
<meta charset="UTF-8">

<% if (img.endsWith('.mp4')) { %>
<meta name="twitter:player" content="video url">
<% } else { %>
<meta property="og:image" content="<%= img %>" />
<% } %>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/missingFile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../files/favicon.ico">
<link rel="stylesheet" href="../css/index.css">
<meta name="robots" content="noindex">
<title>ShareX-API | Missing File</title>
<meta name="robots" content="noindex">
<meta charset="UTF-8">
</head>

Expand Down

0 comments on commit e98e9f4

Please sign in to comment.