From 76290e3789aa4f84171a9a28aa75fd744fb0bb75 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 4 Jun 2024 10:55:34 -0400 Subject: [PATCH] fix: bug that stopped remote users with dashes in their handle from being properly asserted --- 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 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 hours const Helpers = module.exports;