Node.js based forum software built for the modern web
fix: getTopicsFromSet
Barış Soner Uşaklı13aaf07bf5bf
diff --git a/src/topics/index.js b/src/topics/index.jsindex 61c1c62908..7473f5754a 100644--- a/src/topics/index.js+++ b/src/topics/index.js@@ -37,7 +37,7 @@ Topics.exists = async function (tid) {};Topics.getTopicsFromSet = async function (set, uid, start, stop) {- const tids = await db.getSortedSetRange(set, start, stop);+ const tids = await db.getSortedSetRevRange(set, start, stop);const topics = await Topics.getTopics(tids, uid);Topics.calculateTopicIndices(topics, start);return { topics: topics, nextStart: stop + 1 };