fix: add missing ap pageview middleware

This commit is contained in:
Barış Soner Uşaklı
2025-07-11 15:38:21 -04:00
parent 3ff7822d44
commit 01f2effced

View File

@@ -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)