From: Chocobozzz Date: Tue, 19 Dec 2017 13:26:32 +0000 (+0100) Subject: Accept domain without port for webfinger X-Git-Tag: v0.0.1-alpha~112 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=232f04c809bf25952b790da5685b36f05cb19750;p=oweals%2Fpeertube.git Accept domain without port for webfinger --- diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts index c53db4027..1b9aad444 100644 --- a/server/helpers/custom-validators/webfinger.ts +++ b/server/helpers/custom-validators/webfinger.ts @@ -11,7 +11,7 @@ function isWebfingerResourceValid (value: string) { const host = actorParts[1] - return host === CONFIG.WEBSERVER.HOST + return host === CONFIG.WEBSERVER.HOSTNAME || host === CONFIG.WEBSERVER.HOST } // ---------------------------------------------------------------------------