mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-09 09:02:48 +01:00
Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
const nconf = require('nconf');
|
||||
const winston = require('winston');
|
||||
|
||||
const meta = require('../../meta');
|
||||
const user = require('../../user');
|
||||
const activitypub = require('../../activitypub');
|
||||
const helpers = require('../helpers');
|
||||
@@ -14,7 +15,7 @@ Controller.topics = require('./topics');
|
||||
|
||||
Controller.fetch = async (req, res, next) => {
|
||||
// Given a `resource` query parameter, attempts to retrieve and parse it
|
||||
if (!req.query.resource) {
|
||||
if (!meta.config.activitypubEnabled || !req.query.resource) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ apiController.loadConfig = async function (req) {
|
||||
version: fontawesome_version,
|
||||
},
|
||||
activitypub: {
|
||||
probe: meta.config.activitypubProbe,
|
||||
probe: meta.config.activitypubEnabled && meta.config.activitypubProbe,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user