mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
feat: global switch for disabling federation, + test
This commit is contained in:
@@ -302,7 +302,7 @@ middleware.proceedOnActivityPub = (req, res, next) => {
|
||||
// For whatever reason, express accepts does not recognize "profile" as a valid differentiator
|
||||
// Therefore, manual header parsing is used here.
|
||||
const { accept } = req.headers;
|
||||
if (!accept) {
|
||||
if (!accept || !meta.config.activityPubEnabled) {
|
||||
return next('route');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user