Node.js based forum software built for the modern web
fix: bug that stopped remote users with dashes in their handle from being properly asserted
Julian Lam76290e3789aa
diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.jsindex c6f8e5c451..967520ca3f 100644--- a/src/activitypub/helpers.js+++ b/src/activitypub/helpers.js@@ -15,7 +15,7 @@ const ttl = require('../cache/ttl');const user = require('../user');const activitypub = require('.');-const webfingerRegex = /^(@|acct:)?\w+@.+$/;+const webfingerRegex = /^(@|acct:)?[\w\-]+@.+$/;const webfingerCache = ttl({ ttl: 1000 * 60 * 60 * 24 }); // 24 hoursconst Helpers = module.exports;