mirror of https://github.com/Chocobozzz/PeerTube
Fix URL normalization in import script
parent
1f3a605e10
commit
4449d2695b
|
@ -333,7 +333,7 @@ function isNSFW (info: any) {
|
|||
function normalizeTargetUrl (url: string) {
|
||||
let normalizedUrl = url.replace(/\/+$/, '')
|
||||
|
||||
if (!normalizedUrl.startsWith('http://') || !normalizedUrl.startsWith('https://')) {
|
||||
if (!normalizedUrl.startsWith('http://') && !normalizedUrl.startsWith('https://')) {
|
||||
normalizedUrl = 'https://' + normalizedUrl
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue