mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #13172, Topics.addParentPosts not sending sourceContent in calling parsePosts
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user