From a7e6cfe83792a8106550e6f93feeabfe0f33881e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 13 Dec 2024 13:47:16 -0500 Subject: [PATCH] fix: #12972, allow bridgyfed accounts to pass isWebfinger regex validation --- src/activitypub/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js index 9a311c7dd4..aa00528717 100644 --- a/src/activitypub/helpers.js +++ b/src/activitypub/helpers.js @@ -19,7 +19,7 @@ const user = require('../user'); const utils = require('../utils'); const activitypub = require('.'); -const webfingerRegex = /^(@|acct:)?[\w-]+@.+$/; +const webfingerRegex = /^(@|acct:)?[\w-.]+@.+$/; const webfingerCache = ttl({ max: 5000, ttl: 1000 * 60 * 60 * 24, // 24 hours