Merge pull request #303 from kirushik/gravatar_https

Secure gravatar
This commit is contained in:
Robin Ward 2013-03-01 07:12:56 -08:00
commit c3b0cf0744

View File

@ -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