fix: some wip code regarding handling a follow activity, remove unfollow activity as that does not exist

This commit is contained in:
Julian Lam
2023-12-22 13:35:09 -05:00
parent 0eadad84cd
commit f3b0794d17
2 changed files with 30 additions and 60 deletions

View File

@@ -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;
}