From 80377599d1ebf69fa9cfc3df17032c756d47617a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 7 Feb 2024 12:35:58 -0500 Subject: [PATCH] fix: logic error --- src/controllers/activitypub/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/activitypub/index.js b/src/controllers/activitypub/index.js index e9b922df8a..b110b9d80b 100644 --- a/src/controllers/activitypub/index.js +++ b/src/controllers/activitypub/index.js @@ -113,7 +113,7 @@ Controller.getInbox = async (req, res) => { Controller.postInbox = async (req, res) => { // Note: underlying methods are internal use only, hence no exposure via src/api const method = String(req.body.type).toLowerCase(); - if (req.body.hasOwnProperty(method)) { + if (!activitypub.inbox.hasOwnProperty(method)) { return res.sendStatus(501); }