From e045436c07159b64252b5e7adb7515037678489d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 24 Jul 2020 16:11:18 -0400 Subject: [PATCH] feat: 8502, don't change topics sitemaps on every reply sort by topic creation in ascending order --- src/sitemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);