Fix #3603: Unable to view images on Hijiribe/Sonohara when Danbooru domain is blocked.
This commit is contained in:
@@ -48,6 +48,14 @@ class CurrentUser
|
||||
Thread.current[:current_ip_addr]
|
||||
end
|
||||
|
||||
def self.root_url
|
||||
Thread.current[:current_root_url] || "http://#{Danbooru.config.hostname}/"
|
||||
end
|
||||
|
||||
def self.root_url=(root_url)
|
||||
Thread.current[:current_root_url] = root_url
|
||||
end
|
||||
|
||||
def self.id
|
||||
if user.nil?
|
||||
nil
|
||||
|
||||
Reference in New Issue
Block a user