Node.js based forum software built for the modern web
fix(middleware): remove dead res.locals['ap:blocklist'] assignment
Julian Lamd0d52c6bafd1
diff --git a/src/middleware/activitypub.js b/src/middleware/activitypub.jsindex a794ee4218..ee2a1b91ee 100644--- a/src/middleware/activitypub.js+++ b/src/middleware/activitypub.js@@ -113,14 +113,6 @@ middleware.assertPayload = helpers.try(async function (req, res, next) {return res.sendStatus(403);}- // Store blocklist info for severity-based handling (silence, filter)- if (result.severity !== null && result.severity >= 2) {- res.locals['ap:blocklist'] = {- severity: result.severity,- listUrl: result.listUrl,- };- }-// Origin checkingif (typeof object !== 'string' && object.hasOwnProperty('id')) {const actorHostnames = Array.isArray(actor) ? actor.map(a => new URL(a).hostname) : [new URL(actor).hostname];