refactor: simplify remote (un)follow controller

This commit is contained in:
Julian Lam
2024-01-23 12:11:35 -05:00
parent 3bdaa8a836
commit c9feb92539
3 changed files with 8 additions and 26 deletions

View File

@@ -105,17 +105,3 @@ Controller.postInbox = async (req, res) => {
res.sendStatus(201);
};
/**
* Main ActivityPub verbs
*/
Controller.follow = async (req, res) => {
const { uid: actorId } = req.params;
helpers.formatApiResponse(200, res, await api.activitypub.follow(req, { actorId }));
};
Controller.unfollow = async (req, res) => {
const { uid: actorId } = req.params;
helpers.formatApiResponse(200, res, await api.activitypub.unfollow(req, { actorId }));
};