Node.js based forum software built for the modern web
pull # of recent replies based on settings
psychobunnyd6c7551120e4
diff --git a/src/routes/api.js b/src/routes/api.jsindex c637dd58f5..9555c4867f 100644--- a/src/routes/api.js+++ b/src/routes/api.js@@ -55,7 +55,7 @@ var path = require('path'),});function iterator(category, callback) {- categories.getRecentReplies(category.cid, 2, function (err, posts) {+ categories.getRecentReplies(category.cid, category.numRecentTopics, function (err, posts) {category.posts = posts;category.post_count = posts.length > 2 ? 2 : posts.length;callback(null);