mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: post editing not taking plugin hook results into account
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = function (Posts) {
|
|||||||
// Normalize data prior to constructing returnPostData (match types with getPostSummaryByPids)
|
// Normalize data prior to constructing returnPostData (match types with getPostSummaryByPids)
|
||||||
postData.deleted = !!postData.deleted;
|
postData.deleted = !!postData.deleted;
|
||||||
|
|
||||||
const returnPostData = { ...postData, ...editPostData };
|
const returnPostData = { ...postData, ...result.post };
|
||||||
returnPostData.cid = topic.cid;
|
returnPostData.cid = topic.cid;
|
||||||
returnPostData.topic = topic;
|
returnPostData.topic = topic;
|
||||||
returnPostData.editedISO = utils.toISOString(now);
|
returnPostData.editedISO = utils.toISOString(now);
|
||||||
|
|||||||
Reference in New Issue
Block a user