Skip to content

Node.js based forum software built for the modern web

fix: move AP pageviews middleware down the chain, after s2s assertion and http sig verification, so as to truly count AP requests

Julian Lam38901c0f0248
diff --git a/src/routes/activitypub.js b/src/routes/activitypub.js
index 6c13fea365..4e87aa1aa6 100644
--- a/src/routes/activitypub.js
+++ b/src/routes/activitypub.js
@@ -20,9 +20,9 @@ module.exports = function (app, middleware, controllers) {
const middlewares = [
middleware.activitypub.enabled,
- middleware.activitypub.pageview,
middleware.activitypub.assertS2S,
middleware.activitypub.verify,
+ middleware.activitypub.pageview,
middleware.activitypub.configureResponse,
];