mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
feat: track incoming requests by id, analytics increment for some metrics, ignore repeated requests by id
closes #12574
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user