mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 00:51:16 +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 user = require('../user');
|
||||||
const activitypub = require('.');
|
const activitypub = require('.');
|
||||||
|
|
||||||
const webfingerRegex = /^(@|acct:)?\w+@.+$/;
|
const webfingerRegex = /^(@|acct:)?[\w\-]+@.+$/;
|
||||||
const webfingerCache = ttl({ ttl: 1000 * 60 * 60 * 24 }); // 24 hours
|
const webfingerCache = ttl({ ttl: 1000 * 60 * 60 * 24 }); // 24 hours
|
||||||
|
|
||||||
const Helpers = module.exports;
|
const Helpers = module.exports;
|
||||||
|
|||||||
Reference in New Issue
Block a user