fixes #2478: Add links for easy opt-out of emails

This commit is contained in:
r888888888
2015-09-03 17:03:03 -07:00
parent d7b0d2a7e5
commit 4c5e7a2708
9 changed files with 56 additions and 5 deletions

View File

@@ -360,6 +360,10 @@ module Danbooru
false
end
def email_key
"zDMSATq0W3hmA5p3rKTgD"
end
# For downloads, if the host matches any of these IPs, block it
def banned_ip_for_download?(ip_addr)
raise ArgumentError unless ip_addr.is_a?(IPAddr)