You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug here, however, in that at no point during the process does the system actually check if the user it's attempting to notify has an email (it's entirely plausible that they might not). This line should check to see if they have an email address that is valid before attempting to send: https://github.com/radar/forem/blob/rails4/app/mailers/forem/subscription_mailer.rb#L10
The text was updated successfully, but these errors were encountered:
It sure sounds like you know what the problem is and how to fix it. Could you please submit a PR that fixes this? Personally I would not put the check in the SubscriptionMailer, but on the method that calls the mailer.
It sure sounds like you know what the problem is and how to fix it. Could
you please submit a PR that fixes this? Personally I would not put the
check in the SubscriptionMailer, but on the method that calls the mailer.
—
Reply to this email directly or view it on GitHub #650 (comment).
Right now when a user creates a post the system will attempt to send notifications to all previous posters (subscribers):
https://github.com/radar/forem/blob/rails4/app/models/forem/post.rb#L106
There is a bug here, however, in that at no point during the process does the system actually check if the user it's attempting to notify has an email (it's entirely plausible that they might not). This line should check to see if they have an email address that is valid before attempting to send:
https://github.com/radar/forem/blob/rails4/app/mailers/forem/subscription_mailer.rb#L10
The text was updated successfully, but these errors were encountered: