fixed live tiles if there are more than 2 posts

This commit is contained in:
Baris Soner Usakli
2013-07-06 22:21:30 -04:00
parent 642bd5f3c8
commit 9320883f92
2 changed files with 2 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ var express = require('express'),
function iterator(category, callback) {
categories.getRecentReplies(category.cid, 2, function(posts) {
category["posts"] = posts;
category["post_count"] = posts.length;
category["post_count"] = posts.length>2 ? 2 : posts.length;
callback(null);
});
}