Skip to content

Node.js based forum software built for the modern web

Send plugin `postData` changes up the line (#4875)

Peter Jaszkowiak20024418d951
diff --git a/src/posts/create.js b/src/posts/create.js
index e84fdaaf3d..e42dff0f24 100644
--- a/src/posts/create.js
+++ b/src/posts/create.js
@@ -58,7 +58,8 @@ module.exports = function(Posts) {
plugins.fireHook('filter:post.save', postData, next);
},
- function(postData, next) {
+ function(_postData, next) {
+ postData = _postData;
db.setObject('post:' + postData.pid, postData, next);
},
function(next) {