Accept domain without port for webfinger
authorChocobozzz <me@florianbigard.com>
Tue, 19 Dec 2017 13:26:32 +0000 (14:26 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Dec 2017 13:26:32 +0000 (14:26 +0100)
server/helpers/custom-validators/webfinger.ts

index c53db402795eb562c5db634bb2e6a65b723927ee..1b9aad444f0ac835d91e0d3b3d2a37816ff59b00 100644 (file)
@@ -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
 }
 
 // ---------------------------------------------------------------------------