Skip to content

Node.js based forum software built for the modern web

fix: post editing not taking plugin hook results into account

Julian Lam4439864ce009
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);