   query = {} if not query
   proposals = Proposal.find(query, _.extend(options, {fields: proposalFields(@userId)}))
   userIds = _.flatten(proposals.map((p) -> p.speaker_ids))
-  users = User.find({_id: $in: userIds}, {fields: userFields})
+  users = User.find({_id: $in: userIds}, {fields: userFields()})
   [proposals, users]
 
 Meteor.publish "agenda", ->


Meteor.publish "moderators", ->
  User.find {'roles.moderator': true},
    fields: userFields

Meteor.publish "proposals-min", (query, options) ->
  options = {} if not options
  query = {} if not query
  proposals = Proposal.find(_.extend(query, notDeletedPred), _.extend(options, {fields: proposalFields(@userId, true)}))
  userIds = _.flatten(proposals.map((p) -> p.speaker_ids))
  users = User.find({_id: $in: userIds}, {fields: userFields})
  [proposals, users]

Meteor.publish "proposals", (query, options) ->

  proposalIds = _.uniq(_.compact(_.flatten(items.map((i) -> [i.class1, i.class2, i.class3]))))
  proposals = Proposal.find({_id: $in: proposalIds}, {fields: proposalFields(@userId, true)})
  userIds = _.flatten(proposals.map((p) -> p.speaker_ids))
  users = User.find({_id: $in: userIds}, {fields: userFields()})
  [items, proposals, users]

Meteor.publish "sponsors", (query, options) ->
