Skip to content

Node.js based forum software built for the modern web

test: dont return cross posts

Barış Soner Uşaklıbe5b36bcd19b
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.js
index d5ac911d89..e1be6a9a6d 100644
--- a/src/categories/recentreplies.js
+++ b/src/categories/recentreplies.js
@@ -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) {