Meteor.publish('posts', function(sort, limit) {
  return Posts.find({}, { sort: sort, limit: limit });
});

Meteor.publish('comments', function(postId) {
  check(postId, String);
  return Comments.find({ postId: postId });
});

Meteor.publish('notifications', function() {
  return Notifications.find({ userId: this.userId, read: false });
});

Meteor.publish('posts', function(options) {
  return Posts.find({}, options);
});

Meteor.publish('comments', function(postId) {
  check(postId, String);
  return Comments.find({ postId: postId });
});

Meteor.publish('notifications', function() {
  return Notifications.find({ userId: this.userId, read: false });
});

Revert back publication with option