From 232f04c809bf25952b790da5685b36f05cb19750 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Dec 2017 14:26:32 +0100 Subject: [PATCH] Accept domain without port for webfinger --- server/helpers/custom-validators/webfinger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } // --------------------------------------------------------------------------- -- 2.41.0