mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 00:20:31 +02:00
fix: logic error
This commit is contained in:
@@ -113,7 +113,7 @@ Controller.getInbox = async (req, res) => {
|
|||||||
Controller.postInbox = async (req, res) => {
|
Controller.postInbox = async (req, res) => {
|
||||||
// Note: underlying methods are internal use only, hence no exposure via src/api
|
// Note: underlying methods are internal use only, hence no exposure via src/api
|
||||||
const method = String(req.body.type).toLowerCase();
|
const method = String(req.body.type).toLowerCase();
|
||||||
if (req.body.hasOwnProperty(method)) {
|
if (!activitypub.inbox.hasOwnProperty(method)) {
|
||||||
return res.sendStatus(501);
|
return res.sendStatus(501);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user