mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: add missing ap pageview middleware
This commit is contained in:
@@ -3,8 +3,14 @@
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
|
|
||||||
module.exports = function (app, middleware, controllers) {
|
module.exports = function (app, middleware, controllers) {
|
||||||
helpers.setupPageRoute(app, '/world', [middleware.activitypub.enabled], controllers.activitypub.topics.list);
|
helpers.setupPageRoute(app, '/world', [
|
||||||
helpers.setupPageRoute(app, '/ap', [middleware.activitypub.enabled], controllers.activitypub.fetch);
|
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)
|
* The following controllers only respond if the sender is making an json+activitypub style call (i.e. S2S-only)
|
||||||
|
|||||||
Reference in New Issue
Block a user