mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +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
|
||||
// Therefore, manual header parsing is used here.
|
||||
const { accept, 'content-type': contentType } = req.headers;
|
||||
if (!meta.config.activitypubEnabled || !(accept && contentType)) {
|
||||
if (!meta.config.activitypubEnabled || !(accept || contentType)) {
|
||||
return next('route');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user