mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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();
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user