mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 08:50:27 +01:00
add tests for top topics
fix popular page displaying 18 topics per page
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = function (Categories) {
|
||||
function (results, next) {
|
||||
var totalPinnedCount = results.pinnedTids.length;
|
||||
|
||||
pinnedTids = results.pinnedTids.slice(data.start, data.stop === -1 ? undefined : data.stop + 1);
|
||||
pinnedTids = results.pinnedTids.slice(data.start, data.stop !== -1 ? data.stop + 1 : undefined);
|
||||
|
||||
var pinnedCount = pinnedTids.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user