Limit num of results to hotThreadsLimit

merge-requests/341/head
Thomas Lynch 2 years ago
parent 1957aba02f
commit f4e746cef4
  1. 2
      db/posts.js

@ -775,7 +775,7 @@ module.exports = {
return ht;
}).sort((a, b) => {
return b.score - a.score;
});
}).slice(0, hotThreadsLimit);
return hotThreadsWithScore;
},

Loading…
Cancel
Save