mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: return 200 for non-implemented activities instead of 501
This commit is contained in:
@@ -145,7 +145,7 @@ Controller.postInbox = async (req, res) => {
|
||||
const method = String(req.body.type).toLowerCase();
|
||||
if (!activitypub.inbox.hasOwnProperty(method)) {
|
||||
winston.warn(`[activitypub/inbox] Received Activity of type ${method} but unable to handle. Ignoring.`);
|
||||
return res.sendStatus(501);
|
||||
return res.sendStatus(200);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user