mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix import with when the imported file has the same extension than an
already existing file
This commit is contained in:
parent
7754034641
commit
6ccdf3a23e
3 changed files with 33 additions and 8 deletions
|
@ -45,7 +45,8 @@ function generateOEmbed (req: express.Request, res: express.Response, next: expr
|
|||
thumbnailUrl = undefined
|
||||
}
|
||||
|
||||
const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts" src="${embedUrl}" frameborder="0" allowfullscreen></iframe>`
|
||||
const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts" ` +
|
||||
`src="${embedUrl}" frameborder="0" allowfullscreen></iframe>`
|
||||
|
||||
const json: any = {
|
||||
type: 'video',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue