From 4439864ce0092b12de66ff4ebb0bec3975cbab49 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 30 Oct 2020 10:05:26 -0400 Subject: [PATCH] fix: post editing not taking plugin hook results into account --- src/posts/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/edit.js b/src/posts/edit.js index df3fdbcad7..9b3a00775a 100644 --- a/src/posts/edit.js +++ b/src/posts/edit.js @@ -67,7 +67,7 @@ module.exports = function (Posts) { // Normalize data prior to constructing returnPostData (match types with getPostSummaryByPids) postData.deleted = !!postData.deleted; - const returnPostData = { ...postData, ...editPostData }; + const returnPostData = { ...postData, ...result.post }; returnPostData.cid = topic.cid; returnPostData.topic = topic; returnPostData.editedISO = utils.toISOString(now);