Add setting to disable email notifications of comments
This commit is contained in:
parent
9d4af0dcd3
commit
18433a6776
5 changed files with 18 additions and 1 deletions
|
|
@ -63,7 +63,13 @@ class Comment < ApplicationRecord
|
|||
|
||||
private
|
||||
|
||||
def conference
|
||||
commentable.program.conference
|
||||
end
|
||||
|
||||
def send_notification
|
||||
return unless conference.email_settings.send_on_event_comment?
|
||||
|
||||
EventCommentMailJob.perform_later(self)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue