aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/webfinger.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-21 10:16:20 +0100
committerChocobozzz <me@florianbigard.com>2017-12-21 10:16:20 +0100
commit604abfbef5e80d94e46658e4efa762adeab855ea (patch)
tree7b1522812841064376713ea717614a95d3fd95a7 /server/helpers/custom-validators/webfinger.ts
parent225a89c2afbbe53cf39ffa7ea0cd485095a1d5f5 (diff)
downloadPeerTube-604abfbef5e80d94e46658e4efa762adeab855ea.tar.gz
PeerTube-604abfbef5e80d94e46658e4efa762adeab855ea.tar.zst
PeerTube-604abfbef5e80d94e46658e4efa762adeab855ea.zip
Fix webfinger validator
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// ---------------------------------------------------------------------------