fix: #12972, allow bridgyfed accounts to pass isWebfinger regex validation

This commit is contained in:
Julian Lam
2024-12-13 13:47:16 -05:00
parent ee8ec61ef2
commit a7e6cfe837

View File

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