mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
fix: bug that stopped remote users with dashes in their handle from being properly asserted
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user