aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/peertube-import-videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts
index 39e8221c0..eaa792763 100644
--- a/server/tools/peertube-import-videos.ts
+++ b/server/tools/peertube-import-videos.ts
@@ -333,7 +333,7 @@ function isNSFW (info: any) {
333function normalizeTargetUrl (url: string) { 333function normalizeTargetUrl (url: string) {
334 let normalizedUrl = url.replace(/\/+$/, '') 334 let normalizedUrl = url.replace(/\/+$/, '')
335 335
336 if (!normalizedUrl.startsWith('http://') || !normalizedUrl.startsWith('https://')) { 336 if (!normalizedUrl.startsWith('http://') && !normalizedUrl.startsWith('https://')) {
337 normalizedUrl = 'https://' + normalizedUrl 337 normalizedUrl = 'https://' + normalizedUrl
338 } 338 }
339 339