Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Accept domain without port for webfinger

Chocobozzz232f04c809bf
diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts
index c53db40279..1b9aad444f 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
}
// ---------------------------------------------------------------------------