From 13a2e4cc3f90d5de9abe2f7de6fb9230f71257ca Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 21 Jul 2016 13:13:25 -0400 Subject: [PATCH] Revert "Send plugin `postData` changes up the line (#4875)" This reverts commit 20024418d951688b8884dd86178a1d3f73c2e813. re: #4875 --- src/posts/create.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index e42dff0f24..e84fdaaf3d 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -58,8 +58,7 @@ module.exports = function(Posts) { plugins.fireHook('filter:post.save', postData, next); }, - function(_postData, next) { - postData = _postData; + function(postData, next) { db.setObject('post:' + postData.pid, postData, next); }, function(next) {