|
|
@ -154,7 +154,7 @@ async function getTopics(tids, data) {
|
|
|
|
const topicsData = await topics.getTopicsData(tids);
|
|
|
|
const topicsData = await topics.getTopicsData(tids);
|
|
|
|
const cids = _.uniq(topicsData.map(topic => topic && topic.cid));
|
|
|
|
const cids = _.uniq(topicsData.map(topic => topic && topic.cid));
|
|
|
|
const [categories, tags] = await Promise.all([
|
|
|
|
const [categories, tags] = await Promise.all([
|
|
|
|
getCategories(topicsData, data),
|
|
|
|
getCategories(cids, data),
|
|
|
|
getTags(tids, data),
|
|
|
|
getTags(tids, data),
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|