mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 08:06:51 +02:00
backport composer route crash fix
This commit is contained in:
committed by
GitHub
parent
6cbeff34ea
commit
97ac4a2e8c
@@ -10,13 +10,13 @@ var helpers = require('./helpers');
|
||||
|
||||
exports.get = function (req, res, next) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
function (_next) {
|
||||
plugins.fireHook('filter:composer.build', {
|
||||
req: req,
|
||||
res: res,
|
||||
next: next,
|
||||
templateData: {},
|
||||
}, next);
|
||||
}, _next);
|
||||
},
|
||||
function (data) {
|
||||
if (data.templateData.disabled) {
|
||||
|
||||
Reference in New Issue
Block a user