feat: pass topic creation data to action:topic.save

This commit is contained in:
Barış Soner Uşaklı
2019-01-30 10:32:50 -05:00
parent 7e872d32f0
commit cd2f72fb73

View File

@@ -85,7 +85,7 @@ module.exports = function (Topics) {
], next);
},
function (results, next) {
plugins.fireHook('action:topic.save', { topic: _.clone(topicData) });
plugins.fireHook('action:topic.save', { topic: _.clone(topicData), data: data });
next(null, topicData.tid);
},
], callback);