fix: bug that stopped remote users with dashes in their handle from being properly asserted

This commit is contained in:
Julian Lam
2024-06-04 10:55:34 -04:00
parent 4cec67832c
commit 76290e3789

View File

@@ -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;