diff --git a/src/sitemap.js b/src/sitemap.js index 42adfb6870..f506a96a36 100644 --- a/src/sitemap.js +++ b/src/sitemap.js @@ -105,7 +105,7 @@ sitemap.getTopicPage = async function (page) { } const topicUrls = []; - let tids = await db.getSortedSetRevRange('topics:recent', min, max); + let tids = await db.getSortedSetRange('topics:tid', min, max); tids = await privileges.topics.filterTids('topics:read', tids, 0); const topicData = await topics.getTopicsFields(tids, ['tid', 'title', 'slug', 'lastposttime']);