mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +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,
|
||||
res: res
|
||||
}, function(err, html) {
|
||||
if (err) {
|
||||
if (err || html === null) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user