File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default (app: Application) => {
50
50
return res . status ( 200 ) . json ( {
51
51
success : true ,
52
52
message : `File has been saved at ${ url } /view/${ fileName } ` ,
53
- url : `${ url } /view/${ fileName } ` ,
53
+ url : `${ url } /${ fileName . split ( '.' ) [ 1 ] === 'mp4' ? 'raw' : ' view' } /${ fileName } ` ,
54
54
delete : `${ url } /delete/${ fileName } ` ,
55
55
} ) ;
56
56
} catch ( err ) {
Original file line number Diff line number Diff line change 6
6
<title >ShareX-API | <%= data .name %> .<%= data .fileExtension %> </title >
7
7
<link rel =" icon" type =" image/x-icon" href =" ../files/favicon.ico" >
8
8
<meta name =" twitter:card" content =" summary_large_image" />
9
- <meta property =" og:image" content =" <%= img %>" />
10
9
<link rel =" stylesheet" href =" ../css/index.css" >
11
10
<meta name =" theme-color" content =" #000000" />
12
11
<meta property =" og:description" content =" " />
13
12
<meta property =" og:site_name" content =" " >
14
13
<meta name =" robots" content =" noindex" >
15
14
<meta charset =" UTF-8" >
16
15
<% if (img .endsWith (' .mp4' )) { % >
17
- < meta name= " twitter:player" content= " <%= img %>" >< %
18
- } else { % >
19
- < meta property= " og:image" content= " <%= img %>" / >< % } %>
16
+ < meta name= " og:video:secure_url" content= " <%= img %>" >
17
+ < meta property= " og:video:type" content= " video/mp4" >
18
+ < meta name= " og:video" content= " <%= img %>" >
19
+ < % } else { % >
20
+ < meta property= " og:image" content= " <%= img %>" / >
21
+ < % } %>
20
22
</head >
21
23
22
24
<body >
39
41
</div >
40
42
</div >
41
43
</main >
42
- </body >
43
-
44
- <>
44
+ </body >
You can’t perform that action at this time.
0 commit comments