Defining explicit mutator methods, with some sort of security for upvoting (from common/methods.js)
Meteor.methods({// ...vote: function(hostname){// if the app doesn't already have a vote in this minute,// increment vote_count and mark this minute in the votes array.// minutes since epochvarvote_ts=Math.floor((newDate()).getTime()/1000/60);if(Meteor.isClient){Apps.update({name: hostname},{$inc: {vote_count: 1},$addToSet: {votes: vote_ts}});}else{Apps.update({name: hostname,votes: {$ne: vote_ts}},{$inc: {vote_count: 1},$addToSet: {votes: vote_ts}});}},// ...});
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].