mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +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 = [];
|
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);
|
tids = await privileges.topics.filterTids('topics:read', tids, 0);
|
||||||
const topicData = await topics.getTopicsFields(tids, ['tid', 'title', 'slug', 'lastposttime']);
|
const topicData = await topics.getTopicsFields(tids, ['tid', 'title', 'slug', 'lastposttime']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user