fix: return 200 for non-implemented activities instead of 501

This commit is contained in:
Julian Lam
2025-06-01 12:40:37 -04:00
parent b1022566da
commit 524a1e8bfe

View File

@@ -145,7 +145,7 @@ Controller.postInbox = async (req, res) => {
const method = String(req.body.type).toLowerCase(); const method = String(req.body.type).toLowerCase();
if (!activitypub.inbox.hasOwnProperty(method)) { if (!activitypub.inbox.hasOwnProperty(method)) {
winston.warn(`[activitypub/inbox] Received Activity of type ${method} but unable to handle. Ignoring.`); winston.warn(`[activitypub/inbox] Received Activity of type ${method} but unable to handle. Ignoring.`);
return res.sendStatus(501); return res.sendStatus(200);
} }
try { try {