mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
add test for composer fix
This commit is contained in:
@@ -8,15 +8,15 @@ var plugins = require('../plugins');
|
||||
var topics = require('../topics');
|
||||
var helpers = require('./helpers');
|
||||
|
||||
exports.get = function (req, res, next) {
|
||||
exports.get = function (req, res, callback) {
|
||||
async.waterfall([
|
||||
function (_next) {
|
||||
function (next) {
|
||||
plugins.fireHook('filter:composer.build', {
|
||||
req: req,
|
||||
res: res,
|
||||
next: next,
|
||||
next: callback,
|
||||
templateData: {},
|
||||
}, _next);
|
||||
}, next);
|
||||
},
|
||||
function (data) {
|
||||
if (data.templateData.disabled) {
|
||||
@@ -28,7 +28,7 @@ exports.get = function (req, res, next) {
|
||||
res.render('compose', data.templateData);
|
||||
}
|
||||
},
|
||||
], next);
|
||||
], callback);
|
||||
};
|
||||
|
||||
exports.post = function (req, res) {
|
||||
|
||||
Reference in New Issue
Block a user