Revert "Workaround for Issue #1580"

This reverts commit b46e6d4fa0.
This commit is contained in:
Dominic Tracey 2017-03-27 14:48:24 -04:00
parent b46e6d4fa0
commit 1892a3cf58

View file

@ -65,7 +65,7 @@ if (!!Comments) {
// 1. Notify author of post (if they have new comment notifications turned on)
// but do not notify author of post if they're the ones posting the comment
if (Users.getSetting(postAuthor, "notifications_comments", false) && comment.userId !== postAuthor._id) {
if (Users.getSetting(postAuthor, "notifications_comments", true) && comment.userId !== postAuthor._id) {
createNotification(post.userId, 'newComment', notificationData);
userIdsNotified.push(post.userId);
}
@ -82,7 +82,7 @@ if (!!Comments) {
const parentCommentAuthor = Users.findOne(parentComment.userId);
// do not notify parent comment author if they have reply notifications turned off
if (Users.getSetting(parentCommentAuthor, "notifications_replies", false)) {
if (Users.getSetting(parentCommentAuthor, "notifications_replies", true)) {
// add parent comment to notification data
notificationData.parentComment = _.pick(parentComment, '_id', 'userId', 'author', 'htmlBody');