Notifications = new Mongo.Collection('notifications');

@@ -48,8 +48,491 @@
 ions');%0A
+%0ANotifications.allow(%7B%0A  update: function(userId, doc, fieldNames) %7B%0A    return ownsDocument(userId, doc) &&%0A      fieldNames.length === 1 && fieldNames%5B0%5D === 'read';%0A  %7D%0A%7D);%0A%0AcreateCommentNotification = function(comment) %7B%0A  var post = Posts.find(comment.postId);%0A%0A  if (comment.userId !== post.userId) %7B%0A    Notifications.insert(%7B%0A      userId: post.userId,%0A      postId: post._id,%0A      commentId: comment._id,%0A      commeterName: comment.author,%0A      read: false;%0A    %7D)%0A  %7D%0A%7D%0A

Add allow rule and a createCommentNotification