Node.js based forum software built for the modern web
fix pagination going to 404 if new post creates a new page
barisusakli4f38a33702b7
diff --git a/src/topics.js b/src/topics.jsindex 59a843e610..6733aa2529 100644--- a/src/topics.js+++ b/src/topics.js@@ -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));});});};