about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/discourse/notification_email.patch
blob: 9a64b1c1f9ea439b7467dda9b9a90736a5392f4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/db/fixtures/990_settings.rb b/db/fixtures/990_settings.rb
deleted file mode 100644
index 6f21e58813..0000000000
--- a/db/fixtures/990_settings.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-# frozen_string_literal: true
-
-if SiteSetting.notification_email == SiteSetting.defaults[:notification_email]
-  # don't crash for invalid hostname, which is possible in dev
-  begin
-    SiteSetting.notification_email = "noreply@#{Discourse.current_hostname}"
-  rescue Discourse::InvalidParameters
-    if Rails.env.production?
-      STDERR.puts "WARNING: Discourse hostname: #{Discourse.current_hostname} is not a valid domain for emails!"
-    end
-  end
-end