mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:23:38 +08:00
acf6b253e1
FEATURE: allow notification email to be set via ENV
5 lines
232 B
Ruby
5 lines
232 B
Ruby
if SiteSetting.notification_email == SiteSetting.defaults[:notification_email]
|
|
# don't crash for invalid hostname, which is possible in dev
|
|
SiteSetting.notification_email = "noreply@#{Discourse.current_hostname}" rescue nil
|
|
end
|