mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
closes #4587
This commit is contained in:
@@ -288,12 +288,7 @@ topicsController.get = function(req, res, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:topic.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
res.render('topic', data.templateData);
|
||||
});
|
||||
res.render('topic', data);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user