// XXX autopublish warning is printed on each restart. super spammy!

Meteor.publish("directory", function () {
  // XXX too easy to accidentally publish the list of validation tokens
  return Meteor.users.find({}, {fields: {"emails.address": 1}});
});

Meteor.publish("parties", function () {
  return Parties.find(
    {$or: [{"public": true}, {invited: this.userId}, {owner: this.userId}]});
});

// XXX autopublish warning is printed on each restart. super spammy!

Meteor.publish("directory", function () {
  return Meteor.users.find({}, {fields: {emails: 1}});
});

Meteor.publish("parties", function () {
  return Parties.find(
    {$or: [{"public": true}, {invited: this.userId}, {owner: this.userId}]});
});

Remove addressed XXX comment: verification tokens are now separate.
Remove addressed XXX comment: verification tokens are now separate.
