mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
refactor: tab rules
This commit is contained in:
@@ -153,7 +153,7 @@ module.exports = function (Categories) {
|
||||
|
||||
function getPostsRecursive(category, posts) {
|
||||
if (Array.isArray(category.posts)) {
|
||||
category.posts.forEach(p => posts.push(p));
|
||||
category.posts.forEach(p => posts.push(p));
|
||||
}
|
||||
|
||||
category.children.forEach(child => getPostsRecursive(child, posts));
|
||||
|
||||
Reference in New Issue
Block a user