mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-11 01:52:55 +01:00
chore: commenting out logic that drops requests if the id has already been seen, due to a regression in interoperability between NodeBB instances
This commit is contained in:
@@ -40,11 +40,11 @@ middleware.validate = async function (req, res, next) {
|
|||||||
// winston.verbose('[middleware/activitypub] Request body check passed.');
|
// winston.verbose('[middleware/activitypub] Request body check passed.');
|
||||||
|
|
||||||
// History check
|
// History check
|
||||||
const seen = await db.isSortedSetMember('activities:datetime', req.body.id);
|
// const seen = await db.isSortedSetMember('activities:datetime', req.body.id);
|
||||||
if (seen) {
|
// if (seen) {
|
||||||
// winston.verbose(`[middleware/activitypub] Activity already seen, ignoring (${req.body.id}).`);
|
// // winston.verbose(`[middleware/activitypub] Activity already seen, ignoring (${req.body.id}).`);
|
||||||
return res.sendStatus(200);
|
// return res.sendStatus(200);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Checks the validity of the incoming payload against the sender and rejects on failure
|
// Checks the validity of the incoming payload against the sender and rejects on failure
|
||||||
const verified = await activitypub.verify(req);
|
const verified = await activitypub.verify(req);
|
||||||
|
|||||||
Reference in New Issue
Block a user