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

Commit

Permalink
Merge pull request #106 from christianbundy/master
Browse files Browse the repository at this point in the history
Limit hot sorting to 50 posts
  • Loading branch information
christianbundy committed Apr 24, 2014
2 parents 51e2935 + 93e93be commit be67bc6
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 be67bc6

Please sign in to comment.