1
0
Fork 0
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:
Chocobozzz 2018-06-11 19:16:00 +02:00
parent 7754034641
commit 6ccdf3a23e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 33 additions and 8 deletions

View file

@ -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',