mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 10:16:44 +08:00
Secure gravatar
This commit is contained in:
parent
f0c2d012b7
commit
a168dc915e
@ -315,7 +315,7 @@ class User < ActiveRecord::Base
|
||||
email_hash = self.email_hash(email)
|
||||
# robohash was possibly causing caching issues
|
||||
# robohash = CGI.escape("http://robohash.org/size_") << "{size}x{size}" << CGI.escape("/#{email_hash}.png")
|
||||
"http://www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
||||
"https://www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
||||
end
|
||||
|
||||
# return null for local avatars, a template for gravatar
|
||||
|
Loading…
x
Reference in New Issue
Block a user