mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
Added block and unblock button to profile dropdown menu, #6560
This commit is contained in:
@@ -223,16 +223,4 @@ module.exports = function (middleware) {
|
||||
return next();
|
||||
}
|
||||
};
|
||||
|
||||
middleware.handleBlocking = function (req, res, next) {
|
||||
user.blocks.is(res.locals.uid, req.uid, function (err, blocked) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
} else if (blocked) {
|
||||
res.status(404).render('404', { title: '[[global:404.title]]' });
|
||||
} else {
|
||||
return next();
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user