mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix #737
This commit is contained in:
parent
f5c8489acb
commit
b992538c7e
1 changed files with 2 additions and 5 deletions
|
@ -49,10 +49,10 @@ commentAfterSubmitMethodCallbacks.push(function (comment) {
|
|||
if (!!comment.parentCommentId) {
|
||||
|
||||
var parentComment = Comments.findOne(comment.parentCommentId);
|
||||
|
||||
|
||||
// do not notify author of parent comment if they're also post author or comment author
|
||||
// (someone could be replying to their own comment)
|
||||
if (parentComment.userId !== post.userId || parentComment.userId !== comment.userId) {
|
||||
if (parentComment.userId !== post.userId && parentComment.userId !== comment.userId) {
|
||||
|
||||
// add parent comment to notification data
|
||||
notificationData.parentComment = _.pick(parentComment, '_id', 'userId', 'author');
|
||||
|
@ -79,9 +79,6 @@ commentAfterSubmitMethodCallbacks.push(function (comment) {
|
|||
|
||||
}
|
||||
|
||||
console.log(userIdsNotified)
|
||||
console.log(comment.body)
|
||||
|
||||
return comment;
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue