From cd2f72fb731c3be11a5334fa1fca6aaf008d320f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 30 Jan 2019 10:32:50 -0500 Subject: [PATCH] feat: pass topic creation data to action:topic.save --- src/topics/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/create.js b/src/topics/create.js index ffb2077cb8..60c2ea78e4 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -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);