Fix antiproxying (again).
Fuck it, just hardcode it. They rewrite certain parts of our markup so we can't rely on anything in the html.
This commit is contained in:
@@ -30,11 +30,6 @@ module Danbooru
|
||||
Socket.gethostname
|
||||
end
|
||||
|
||||
# The canonical base domain for the site, e.g. donmai.us.
|
||||
def domain
|
||||
hostname
|
||||
end
|
||||
|
||||
# Contact email address of the admin.
|
||||
def contact_email
|
||||
"webmaster@#{hostname}"
|
||||
@@ -472,11 +467,6 @@ module Danbooru
|
||||
def redis_url
|
||||
"redis://localhost:6379"
|
||||
end
|
||||
|
||||
# Try to prevent copycat sites from proxying our site and inserting ads or phishing passwords.
|
||||
def enable_antiproxying?
|
||||
Rails.env.production?
|
||||
end
|
||||
end
|
||||
|
||||
class EnvironmentConfiguration
|
||||
|
||||
Reference in New Issue
Block a user