Skip to content

Node.js based forum software built for the modern web

fix: wrong data passed to getCategories

Barış Soner Uşaklı39f4bbaa0eda
diff --git a/src/search.js b/src/search.js
index bc75e87a66..e67f185d2f 100644
--- a/src/search.js
+++ b/src/search.js
@@ -154,7 +154,7 @@ async function getTopics(tids, data) {
const topicsData = await topics.getTopicsData(tids);
const cids = _.uniq(topicsData.map(topic => topic && topic.cid));
const [categories, tags] = await Promise.all([
- getCategories(topicsData, data),
+ getCategories(cids, data),
getTags(tids, data),
]);