fix: #13067, add sourceContent to teasers

required in posts.parse
This commit is contained in:
Barış Soner Uşaklı
2025-01-22 13:16:40 -05:00
parent f3b8ed274a
commit 679fcb71a9

View File

@@ -43,7 +43,7 @@ module.exports = function (Topics) {
});
const [allPostData, callerSettings] = await Promise.all([
posts.getPostsFields(teaserPids, ['pid', 'uid', 'timestamp', 'tid', 'content']),
posts.getPostsFields(teaserPids, ['pid', 'uid', 'timestamp', 'tid', 'content', 'sourceContent']),
user.getSettings(uid),
]);
let postData = allPostData.filter(post => post && post.pid);