alright, let's don't.

This commit is contained in:
nilsding 2014-12-12 18:04:34 +01:00
parent 6078555c20
commit d9d23edc6d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module ApplicationHelper
end end
def gravatar_url(user) def gravatar_url(user)
return '/cage.png' # return '/cage.png'
return '//www.gravatar.com/avatar' if user.nil? return '//www.gravatar.com/avatar' if user.nil?
return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String
"//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}" "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}"