aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/webfinger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/webfinger.ts')
-rw-r--r--server/helpers/custom-validators/webfinger.ts3
1 files changed, 1 insertions, 2 deletions
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) {
11 if (actorParts.length !== 2) return false 11 if (actorParts.length !== 2) return false
12 12
13 const host = actorParts[1] 13 const host = actorParts[1]
14 14 return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOST
15 return sanitizeHost(host, REMOTE_SCHEME.HTTP) === CONFIG.WEBSERVER.HOSTNAME
16} 15}
17 16
18// --------------------------------------------------------------------------- 17// ---------------------------------------------------------------------------