This commit is contained in:
Sacha Greif 2015-03-16 10:00:26 +09:00
commit ed9ba1d765

View file

@ -492,10 +492,10 @@ Meteor.methods({
// ------------------------------ Callbacks ------------------------------ //
// run all post submit server callbacks on modifier object successively
modifier = postAfterEditMethodCallbacks.reduce(function(result, currentFunction) {
return currentFunction(result);
}, modifier);
// run all post after edit method callbacks successively
postAfterEditMethodCallbacks.forEach(function(currentFunction) {
currentFunction(modifier, postId);
});
// ------------------------------ After Update ------------------------------ //
@ -557,7 +557,7 @@ Meteor.methods({
Posts.update(postId, { $inc: { viewCount: 1 }});
}
},
deletePostById: function(postId) {
// remove post comments
// if(!this.isSimulation) {