From 20024418d951688b8884dd86178a1d3f73c2e813 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Thu, 21 Jul 2016 08:41:56 -0600
Subject: [PATCH] Send plugin `postData` changes up the line (#4875)
---
src/posts/create.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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) {