mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Rename SiteSetting#use_https
to force_https
.
This commit is contained in:
parent
83b08b87d5
commit
20359788dc
16 changed files with 75 additions and 18 deletions
|
@ -120,7 +120,7 @@ class UserAvatarsController < ApplicationController
|
|||
def proxy_avatar(url)
|
||||
|
||||
if url[0..1] == "//"
|
||||
url = (SiteSetting.use_https ? "https:" : "http:") + url
|
||||
url = (SiteSetting.force_https ? "https:" : "http:") + url
|
||||
end
|
||||
|
||||
sha = Digest::SHA1.hexdigest(url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue