Skip to content

Node.js based forum software built for the modern web

fix: properly log ap send errors to the appropriate analytics namespace

Julian Lam17b0257459b2
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index dd39ebb979..1f601df4f6 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -510,7 +510,7 @@ ActivityPub.record.sendError = async ({ payload, uri, error }) => {
body: JSON.stringify(payload),
stack: error.message,
}),
- analytics.increment(['ap.out', `ap.out:byType:${payload.type}`, `ap.out:byHost:${hostname}`]),
+ analytics.increment(['ap.outErr', `ap.outErr:byType:${payload.type}`, `ap.outErr:byHost:${hostname}`]),
]);
await db.expire(`ap.errors:${id}`, 60 * 60 * 24); // 24 hours
};