diff --git a/src/topics/create.js b/src/topics/create.js index c0363c3085..ebf12ff15e 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -141,14 +141,14 @@ module.exports = function(Topics) { async.waterfall([ function(next) { - plugins.fireHook('filter:topic.reply', data, function(err, filteredData) { - if (err) { - return next(err); - } + plugins.fireHook('filter:topic.reply', data, function(err, filteredData) { + if (err) { + return next(err); + } - content = filteredData.content || data.content; - next(); - }); + content = filteredData.content || data.content; + next(); + }); }, function(next) { threadTools.exists(tid, next);