Acceptation mail is only sent to the main event, not repeats

This commit is contained in:
echarp 2016-09-11 18:32:08 +02:00
parent 06e3595988
commit 93bdb05a01

View File

@ -25,7 +25,7 @@ class EventCallbacks
end
def self.after_update(event)
if event.moderated_changed?
if event.moderated_changed? && event.moderated?
tweet event
if ActionMailer::Base.default_url_options[:host]