feat: track incoming requests by id, analytics increment for some metrics, ignore repeated requests by id

closes #12574
This commit is contained in:
Julian Lam
2024-05-14 12:06:59 -04:00
parent b106a6a018
commit 4e9cd8efc0
5 changed files with 185 additions and 10 deletions

View File

@@ -122,7 +122,8 @@ Controller.postInbox = async (req, res) => {
try {
await activitypub.inbox[method](req);
helpers.formatApiResponse(200, res);
await activitypub.record(req.body);
helpers.formatApiResponse(202, res);
} catch (e) {
helpers.formatApiResponse(500, res, e);
}