From d6c7551120e4d350bff7002a9c465ef4665bd147 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 Jan 2014 20:29:09 -0500 Subject: [PATCH] pull # of recent replies based on settings --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 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);