mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: use a slightly better error code to indicate object resolution failure
This commit is contained in:
@@ -84,7 +84,7 @@ middleware.resolveObjects = async function (req, res, next) {
|
||||
winston.verbose('[middleware/activitypub] Object(s) successfully resolved.');
|
||||
} catch (e) {
|
||||
winston.verbose('[middleware/activitypub] Failed to resolve object(s).');
|
||||
return res.sendStatus(400);
|
||||
return res.sendStatus(424);
|
||||
}
|
||||
}
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user