mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix URL normalization in import script
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user