Skip to content

Node.js based forum software built for the modern web

refactor(activitypub): remove redundant actor/uid passthrough

Julian Lamabd9e27c4f70
diff --git a/src/middleware/activitypub.js b/src/middleware/activitypub.js
index 84cd19bcfb..2f3b8c207e 100644
--- a/src/middleware/activitypub.js
+++ b/src/middleware/activitypub.js
@@ -41,11 +41,6 @@ middleware.assertS2S = async function (req, res, next) {
middleware.verify = async function (req, res, next) {
// Verifies the HTTP Signature if present (required for POST)
- const passthrough = [/\/actor(?:\/$|\/)/, /\/uid\/\d+(?:\/$|\/)/];
- if (passthrough.some(regex => regex.test(req.path))) {
- return next();
- }
-
if (req.headers.hasOwnProperty('signature')) {
const verified = await activitypub.verify(req);
if (!verified) {