isMainPost for post summary

This commit is contained in:
psychobunny
2015-11-03 14:53:20 -05:00
parent f702717e61
commit 726c3802e1

View File

@@ -65,6 +65,7 @@ module.exports = function(Posts) {
for (var i=0; i<posts.length; ++i) {
posts[i].index = utils.isNumber(results.indices[i]) ? parseInt(results.indices[i], 10) + 1 : 1;
posts[i].isMainPost = posts[i].index - 1 === 0;
}
posts = posts.filter(function(post) {