mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
allowing widgets to not show up if widget explicitly returns null
This commit is contained in:
@@ -44,7 +44,7 @@ widgets.render = function(uid, area, req, res, callback) {
|
|||||||
req: req,
|
req: req,
|
||||||
res: res
|
res: res
|
||||||
}, function(err, html) {
|
}, function(err, html) {
|
||||||
if (err) {
|
if (err || html === null) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user