Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/NodeBB/NodeBB
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Sep 22, 2020
2 parents 703ac1b + bbf6889 commit d989cb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/categories/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ module.exports = function (Categories) {
const set = await Categories.buildTopicsSortedSet(data);
if (Array.isArray(set)) {
return await db.sortedSetIntersectCard(set);
} else if (data.targetUid && set) {
return await db.sortedSetCard(set);
}
return data.category.topic_count;
};
Expand Down

0 comments on commit d989cb9

Please sign in to comment.