Node.js based forum software built for the modern web
fix: logic error
Julian Lam80377599d1eb
diff --git a/src/controllers/activitypub/index.js b/src/controllers/activitypub/index.jsindex 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/apiconst method = String(req.body.type).toLowerCase();- if (req.body.hasOwnProperty(method)) {+ if (!activitypub.inbox.hasOwnProperty(method)) {return res.sendStatus(501);}