Node.js based forum software built for the modern web
fix: add sourceContent to getPostSummaryByPids
Barış Soner Uşaklıad92e93129e3
diff --git a/src/posts/summary.js b/src/posts/summary.jsindex 89e6087036..18e5bd81fd 100644--- a/src/posts/summary.js+++ b/src/posts/summary.js@@ -22,7 +22,7 @@ module.exports = function (Posts) {options.escape = options.hasOwnProperty('escape') ? options.escape : false;options.extraFields = options.hasOwnProperty('extraFields') ? options.extraFields : [];- const fields = ['pid', 'tid', 'toPid', 'url', 'content', 'uid', 'timestamp', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields);+ const fields = ['pid', 'tid', 'toPid', 'url', 'content', 'sourceContent', 'uid', 'timestamp', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields);let posts = await Posts.getPostsFields(pids, fields);posts = posts.filter(Boolean);