mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:36:29 +02:00
fix: #14072, world to call thumbs with thumbsOnly filter
This commit is contained in:
@@ -86,7 +86,7 @@ controller.list = async function (req, res) {
|
|||||||
posts.hasBookmarked(mainPids, req.uid),
|
posts.hasBookmarked(mainPids, req.uid),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const thumbs = await topics.thumbs.load(topicData);
|
const thumbs = await topics.thumbs.load(topicData, { thumbsOnly: 1 });
|
||||||
const tidToThumbs = _.zipObject(uniqTids, thumbs);
|
const tidToThumbs = _.zipObject(uniqTids, thumbs);
|
||||||
const teasers = await topics.getTeasers(postData.map(p => p.topic), { uid: req.uid });
|
const teasers = await topics.getTeasers(postData.map(p => p.topic), { uid: req.uid });
|
||||||
postData.forEach((p, index) => {
|
postData.forEach((p, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user