X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-auth.ts;h=051156d6682396352953e46c0dca577b3ca97321;hb=26da644eab9ef62a3e559ac5626bb65a0b13a14d;hp=f8ac8b2ab0d4978bc9bda34b7a48ec459eda2e2a;hpb=3318147300b4f998adf728eb0a5a14a4c1829c51;p=github%2FChocobozzz%2FPeerTube.git 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) { ? url.indexOf('/', 8) : url.length - return url.substr(0, urlLength) + return url.substring(0, urlLength) } program @@ -89,7 +89,7 @@ program // Check credentials try { // Strip out everything after the domain:port. - // @see https://github.com/Chocobozzz/PeerTube/issues/3520 + // See https://github.com/Chocobozzz/PeerTube/issues/3520 result.url = stripExtraneousFromPeerTubeUrl(result.url) const server = buildServer(result.url)