Skip to content

Node.js based forum software built for the modern web

fix: add missing ap pageview middleware

Barış Soner Uşaklı01f2effcedc3
diff --git a/src/routes/activitypub.js b/src/routes/activitypub.js
index 815fd738ef..c09b7b9821 100644
--- a/src/routes/activitypub.js
+++ b/src/routes/activitypub.js
@@ -3,8 +3,14 @@
const helpers = require('./helpers');
module.exports = function (app, middleware, controllers) {
- helpers.setupPageRoute(app, '/world', [middleware.activitypub.enabled], controllers.activitypub.topics.list);
- helpers.setupPageRoute(app, '/ap', [middleware.activitypub.enabled], controllers.activitypub.fetch);
+ helpers.setupPageRoute(app, '/world', [
+ middleware.activitypub.enabled,
+ middleware.activitypub.pageview,
+ ], controllers.activitypub.topics.list);
+ helpers.setupPageRoute(app, '/ap', [
+ middleware.activitypub.enabled,
+ middleware.activitypub.pageview,
+ ], controllers.activitypub.fetch);
/**
* The following controllers only respond if the sender is making an json+activitypub style call (i.e. S2S-only)