mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: 8502, don't change topics sitemaps on every reply
sort by topic creation in ascending order
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user