mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
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
|