Skip to content

Node.js based forum software built for the modern web

fix: #13172, Topics.addParentPosts not sending sourceContent in calling parsePosts

Julian Lambb9687bd8974
diff --git a/src/topics/posts.js b/src/topics/posts.js
index bbbeb9c636..e32c18e727 100644
--- a/src/topics/posts.js
+++ b/src/topics/posts.js
@@ -192,7 +192,7 @@ module.exports = function (Topics) {
const pidToPrivs = _.zipObject(parentPids, postPrivileges);
parentPids = parentPids.filter(p => pidToPrivs[p]['topics:read']);
- const parentPosts = await posts.getPostsFields(parentPids, ['uid', 'pid', 'timestamp', 'content', 'deleted']);
+ const parentPosts = await posts.getPostsFields(parentPids, ['uid', 'pid', 'timestamp', 'content', 'sourceContent', 'deleted']);
const parentUids = _.uniq(parentPosts.map(postObj => postObj && postObj.uid));
const userData = await user.getUsersFields(parentUids, ['username', 'userslug', 'picture']);