diff options
Diffstat (limited to 'server/tools/peertube-auth.ts')
-rw-r--r-- | server/tools/peertube-auth.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index f8ac8b2ab..051156d66 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts | |||
@@ -47,7 +47,7 @@ function stripExtraneousFromPeerTubeUrl (url: string) { | |||
47 | ? url.indexOf('/', 8) | 47 | ? url.indexOf('/', 8) |
48 | : url.length | 48 | : url.length |
49 | 49 | ||
50 | return url.substr(0, urlLength) | 50 | return url.substring(0, urlLength) |
51 | } | 51 | } |
52 | 52 | ||
53 | program | 53 | program |
@@ -89,7 +89,7 @@ program | |||
89 | // Check credentials | 89 | // Check credentials |
90 | try { | 90 | try { |
91 | // Strip out everything after the domain:port. | 91 | // Strip out everything after the domain:port. |
92 | // @see https://github.com/Chocobozzz/PeerTube/issues/3520 | 92 | // See https://github.com/Chocobozzz/PeerTube/issues/3520 |
93 | result.url = stripExtraneousFromPeerTubeUrl(result.url) | 93 | result.url = stripExtraneousFromPeerTubeUrl(result.url) |
94 | 94 | ||
95 | const server = buildServer(result.url) | 95 | const server = buildServer(result.url) |