mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: pass topic creation data to action:topic.save
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user