mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
fix: skip topic retrieval when cid is -1, as it is done again later
This commit is contained in:
@@ -46,7 +46,7 @@ Categories.getCategoryById = async function (data) {
|
|||||||
data.category = category;
|
data.category = category;
|
||||||
|
|
||||||
const promises = [
|
const promises = [
|
||||||
Categories.getCategoryTopics(data),
|
data.cid !== '-1' ? Categories.getCategoryTopics(data) : [],
|
||||||
Categories.getTopicCount(data),
|
Categories.getTopicCount(data),
|
||||||
Categories.getWatchState([data.cid], data.uid),
|
Categories.getWatchState([data.cid], data.uid),
|
||||||
getChildrenTree(category, data.uid),
|
getChildrenTree(category, data.uid),
|
||||||
|
|||||||
Reference in New Issue
Block a user