mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
feat: accept and undo support
This commit is contained in:
@@ -113,6 +113,21 @@ Controller.postInbox = async (req, res) => {
|
||||
await activitypub.inbox.unfollow(req.body.actor.name, req.body.object.name);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'Accept': {
|
||||
await activitypub.inbox.accept(req);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'Undo': {
|
||||
await activitypub.inbox.undo(req);
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
console.log('Unhandled Activity!!!');
|
||||
console.log(req.body);
|
||||
}
|
||||
}
|
||||
|
||||
res.sendStatus(201);
|
||||
|
||||
Reference in New Issue
Block a user