mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 14:35:08 -05:00
FIX: don't error out when we receive a bounce associated to a deleted user
This commit is contained in:
@@ -133,6 +133,8 @@ class WebhooksController < ActionController::Base
|
||||
return if email_log.nil?
|
||||
|
||||
email_log.update_columns(bounced: true)
|
||||
return if email_log.user.nil? || email_log.user.email.blank?
|
||||
|
||||
Email::Receiver.update_bounce_score(email_log.user.email, bounce_score)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user