From 7e23e192d86ce8a169e60cf183198e23645940a1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 4 Jul 2024 14:59:06 -0400 Subject: [PATCH] chore: restore activity history check in AP inbox middleware now that NodeBB sends unique IDs with applicable activities --- src/middleware/activitypub.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/middleware/activitypub.js b/src/middleware/activitypub.js index 2873ab6aec..7adf84029e 100644 --- a/src/middleware/activitypub.js +++ b/src/middleware/activitypub.js @@ -40,13 +40,11 @@ middleware.validate = async function (req, res, next) { // winston.verbose('[middleware/activitypub] Request body check passed.'); // History check - /* const seen = await db.isSortedSetMember('activities:datetime', req.body.id); if (seen) { // winston.verbose(`[middleware/activitypub] Activity already seen, ignoring (${req.body.id}).`); return res.sendStatus(200); } - */ // Checks the validity of the incoming payload against the sender and rejects on failure const verified = await activitypub.verify(req);