mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fix pagination going to 404 if new post creates a new page
This commit is contained in:
@@ -72,7 +72,7 @@ var async = require('async'),
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
callback(null, Math.ceil(parseInt(postCount, 10) / settings.postsPerPage));
|
||||
callback(null, Math.ceil((parseInt(postCount, 10) - 1) / settings.postsPerPage));
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user