Skip to content

Commit

Permalink
feat: 8502, don't change topics sitemaps on every reply
Browse files Browse the repository at this point in the history
sort by topic creation in ascending order
  • Loading branch information
barisusakli committed Jul 24, 2020
1 parent 0a9ea91 commit e045436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down

0 comments on commit e045436

Please sign in to comment.