Don’t send notifications when commenting on an annotation
First level comments are considered different threads, so no need to notify the first commenter about other threads
This commit is contained in:
@@ -12,8 +12,10 @@ class CommentNotifier
|
||||
private
|
||||
|
||||
def send_comment_email
|
||||
unless @comment.commentable.is_a?(Legislation::Annotation)
|
||||
Mailer.comment(@comment).deliver_later if email_on_comment?
|
||||
end
|
||||
end
|
||||
|
||||
def send_reply_email
|
||||
Mailer.reply(@comment).deliver_later if email_on_comment_reply?
|
||||
|
||||
Reference in New Issue
Block a user