Load gravatar images over https on https pages
This commit is contained in:
parent
a36f3a9307
commit
28a19f5f13
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ module UserHelper
|
|||
size = options[:size] || 100
|
||||
hash = Digest::MD5::hexdigest(user.email.downcase)
|
||||
default_image_url = image_url("users/images/large.png")
|
||||
url = "http://www.gravatar.com/avatar/#{hash}.jpg?s=#{size}&d=#{u(default_image_url)}"
|
||||
url = "#{request.protocol}www.gravatar.com/avatar/#{hash}.jpg?s=#{size}&d=#{u(default_image_url)}"
|
||||
end
|
||||
|
||||
def user_gravatar_tag(user, options = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue