Skip to content

Commit

Permalink
Merge pull request #1532 from benwbrum/1443-dont-email-opt-out-users
Browse files Browse the repository at this point in the history
nightly_user_activity: don't email opt-out users
  • Loading branch information
benwbrum committed Sep 29, 2019
2 parents 5e25738 + 1d8b15a commit f67fabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/nightly_user_activity.rake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace :fromthepage do

if user_activity.has_contributions?
puts "There was activity on #{user.display_name}\'s previous work in the past 24 hours"
UserMailer.nightly_user_activity(user_activity).deliver!
UserMailer.nightly_user_activity(user_activity).deliver! if user.notification.user_activity
end
rescue StandardError => e
print "SMTP Failed: Exception: #{e.message} \n"
Expand Down

0 comments on commit f67fabb

Please sign in to comment.