Skip to content

Node.js based forum software built for the modern web

sending pid as well as content in action:save_post_content hook

Julian Lam2d64c9979e09
diff --git a/src/posts.js b/src/posts.js
index bb10a854ec..fb5744ee48 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -343,7 +343,7 @@ var RDB = require('./redis.js'),
});
}
- plugins.fireHook('action:save_post_content', [content])
+ plugins.fireHook('action:save_post_content', [pid, content]);
if(!images) {
postData.uploadedImages = JSON.stringify(uploadedImages);