mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
parent
b46e6d4fa0
commit
1892a3cf58
1 changed files with 8 additions and 8 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue