mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
fix: incorrect logic
This commit is contained in:
@@ -311,7 +311,7 @@ middleware.proceedOnActivityPub = (req, res, next) => {
|
|||||||
// For whatever reason, express accepts does not recognize "profile" as a valid differentiator
|
// For whatever reason, express accepts does not recognize "profile" as a valid differentiator
|
||||||
// Therefore, manual header parsing is used here.
|
// Therefore, manual header parsing is used here.
|
||||||
const { accept, 'content-type': contentType } = req.headers;
|
const { accept, 'content-type': contentType } = req.headers;
|
||||||
if (!meta.config.activitypubEnabled || !(accept && contentType)) {
|
if (!meta.config.activitypubEnabled || !(accept || contentType)) {
|
||||||
return next('route');
|
return next('route');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user