From 93e93be9d89d7a68b15ee4b81228ad79185e7016 Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Wed, 23 Apr 2014 20:11:15 -0700 Subject: [PATCH] Limit hot sorting to 50 posts Right now all posts are being published, which is absolutely killing the browser. --- server/posts/publishPosts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/posts/publishPosts.js b/server/posts/publishPosts.js index 4a47cbe..237914d 100644 --- a/server/posts/publishPosts.js +++ b/server/posts/publishPosts.js @@ -94,7 +94,12 @@ Meteor.publish('hotPosts', function (start) { } }); - return Hot.find(); + return Hot.find( + {}, + { + limit: 50 + } + ); });