show topics on home instead of replies

no template changes, instead of showing the latest x posts under
categories, we are now showing the latest x posts of the latest x
topics.
This commit is contained in:
barisusakli
2014-07-22 14:35:30 -04:00
parent 3e252187ad
commit 1e6d589080
2 changed files with 22 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ Controllers.home = function(req, res, next) {
}
function getRecentReplies(category, callback) {
categories.getRecentReplies(category.cid, uid, parseInt(category.numRecentReplies, 10), function (err, posts) {
categories.getRecentTopicReplies(category.cid, uid, parseInt(category.numRecentReplies, 10), function (err, posts) {
if (err) {
return callback(err);
}