From 604abfbef5e80d94e46658e4efa762adeab855ea Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Dec 2017 10:16:20 +0100 Subject: Fix webfinger validator --- server/helpers/custom-validators/webfinger.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts index 46f1ac210..d8c1232ce 100644 --- a/server/helpers/custom-validators/webfinger.ts +++ b/server/helpers/custom-validators/webfinger.ts @@ -11,8 +11,7 @@ function isWebfingerResourceValid (value: string) { if (actorParts.length !== 2) return false const host = actorParts[1] - - return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOSTNAME + return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOST } // --------------------------------------------------------------------------- -- cgit v1.2.3