mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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);
|
], next);
|
||||||
},
|
},
|
||||||
function (results, 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);
|
next(null, topicData.tid);
|
||||||
},
|
},
|
||||||
], callback);
|
], callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user