mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fix: some wip code regarding handling a follow activity, remove unfollow activity as that does not exist
This commit is contained in:
@@ -104,12 +104,7 @@ Controller.postInbox = async (req, res) => {
|
||||
// Note: underlying methods are internal use only, hence no exposure via src/api
|
||||
switch (req.body.type) {
|
||||
case 'Follow': {
|
||||
await activitypub.inbox.follow(req.body.actor.name, req.body.object.name);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'Unfollow': {
|
||||
await activitypub.inbox.unfollow(req.body.actor.name, req.body.object.name);
|
||||
await activitypub.inbox.follow(req);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user