Skip to content

Node.js based forum software built for the modern web

topic post hook

barisusaklib2ece27263ff
diff --git a/src/topics/create.js b/src/topics/create.js
index ea3e56933c..1cab7d2a42 100644
--- a/src/topics/create.js
+++ b/src/topics/create.js
@@ -141,6 +141,8 @@ module.exports = function(Topics) {
topicData = topicData[0];
topicData.unreplied = 1;
+ plugins.fireHook('action:topic.post', topicData);
+
next(null, {
topicData: topicData,
postData: postData