Commit 9c6bd85c authored by Michał "rysiek" Woźniak's avatar Michał "rysiek" Woźniak 🔒

comparing objects instead of strings for subscription

parent b0fcca3f
Pipeline #31313 failed with stages
......@@ -352,7 +352,7 @@ module Schleuder
next
end
if ! self.deliver_selfsent && mail.was_validly_signed? && ( subscription.email == mail.signer.email ) )
if ! self.deliver_selfsent && mail.was_validly_signed? && ( subscription == mail.signer ) )
logger.info "Not sending to #{subscription.email}: delivery of self sent is disabled."
next
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment