Skip to content

Node.js based forum software built for the modern web

fixing weird passing in of a single param as an array for post.save hook

Julian Lame8801a75f3e7
diff --git a/src/posts.js b/src/posts.js
index 422f7efd7f..ef285a8bcd 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -365,7 +365,7 @@ var RDB = require('./redis.js'),
callback(postData);
});
- plugins.fireHook('action:post.save', [postData]);
+ plugins.fireHook('action:post.save', postData);
postSearch.index(content, pid);
});