Skip to content

Node.js based forum software built for the modern web

fix: #12972, allow bridgyfed accounts to pass isWebfinger regex validation

Julian Lama7e6cfe83792
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