test: dont return cross posts

This commit is contained in:
Barış Soner Uşaklı
2026-01-14 18:14:49 -05:00
parent c494d002ba
commit be5b36bcd1

View File

@@ -147,7 +147,10 @@ module.exports = function (Categories) {
.slice(0, parseInt(category.numRecentReplies, 10));
}
});
topics.forEach((t) => { t.parentCids = undefined; });
topics.forEach((t) => {
t.parentCids = undefined;
t.crossposts = undefined;
});
}
function bubbleUpChildrenPosts(categoryData) {