Skip to content
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.

Commit

Permalink
Limit hot sorting to 50 posts
Browse files Browse the repository at this point in the history
Right now all posts are being published, which is absolutely killing
the browser.
  • Loading branch information
christianbundy committed Apr 24, 2014
1 parent 51e2935 commit 93e93be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/posts/publishPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ Meteor.publish('hotPosts', function (start) {
}
});

return Hot.find();
return Hot.find(
{},
{
limit: 50
}
);
});


Expand Down

0 comments on commit 93e93be

Please sign in to comment.