mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix: #12972, allow bridgyfed accounts to pass isWebfinger regex validation
This commit is contained in:
@@ -19,7 +19,7 @@ const user = require('../user');
|
|||||||
const utils = require('../utils');
|
const utils = require('../utils');
|
||||||
const activitypub = require('.');
|
const activitypub = require('.');
|
||||||
|
|
||||||
const webfingerRegex = /^(@|acct:)?[\w-]+@.+$/;
|
const webfingerRegex = /^(@|acct:)?[\w-.]+@.+$/;
|
||||||
const webfingerCache = ttl({
|
const webfingerCache = ttl({
|
||||||
max: 5000,
|
max: 5000,
|
||||||
ttl: 1000 * 60 * 60 * 24, // 24 hours
|
ttl: 1000 * 60 * 60 * 24, // 24 hours
|
||||||
|
|||||||
Reference in New Issue
Block a user