mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 16:42:48 +01:00
fix sitemap
This commit is contained in:
@@ -29,12 +29,12 @@ var path = require('path'),
|
||||
async.parallel([
|
||||
function(next) {
|
||||
var categoryUrls = [];
|
||||
categories.getVisibleCategories(0, function(err, data) {
|
||||
categories.getVisibleCategories(0, function(err, categoriesData) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
data.categories.forEach(function(category) {
|
||||
categoriesData.forEach(function(category) {
|
||||
categoryUrls.push({
|
||||
url: path.join('/category', category.slug),
|
||||
changefreq: 'weekly',
|
||||
|
||||
Reference in New Issue
Block a user