Skip to content

Node.js based forum software built for the modern web

fixes rare "priority error" when generating sitemaps

psychobunny05673e670c2f
diff --git a/src/sitemap.js b/src/sitemap.js
index 812ba9fe53..acda852ae9 100644
--- a/src/sitemap.js
+++ b/src/sitemap.js
@@ -56,19 +56,19 @@ sitemap.getPages = function(callback) {
var urls = [{
url: '',
changefreq: 'weekly',
- priority: '0.6'
+ priority: 0.6
}, {
url: '/recent',
changefreq: 'daily',
- priority: '0.4'
+ priority: 0.4
}, {
url: '/users',
changefreq: 'daily',
- priority: '0.4'
+ priority: 0.4
}, {
url: '/groups',
changefreq: 'daily',
- priority: '0.4'
+ priority: 0.4
}];
sitemap.maps.pages = sm.createSitemap({
@@ -99,7 +99,7 @@ sitemap.getCategories = function(callback) {
categoryUrls.push({
url: '/category/' + category.slug,
changefreq: 'weekly',
- priority: '0.4'
+ priority: 0.4
});
}
});
@@ -153,7 +153,7 @@ sitemap.getTopicPage = function(page, callback) {
url: '/topic/' + topic.slug,
lastmodISO: utils.toISOString(topic.lastposttime),
changefreq: 'daily',
- priority: '0.6'
+ priority: 0.6
});
}
});