diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3f3bfeb3..a6d96f77 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -59,12 +59,13 @@ module ApplicationHelper ((!current_user.nil?) && ((current_user == user) || current_user.mod?)) ? true : false end + # @deprecated Use {User#profile_picture.url} instead. def gravatar_url(user) return user.profile_picture.url # return '/cage.png' - return '//www.gravatar.com/avatar' if user.nil? - return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String - "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}" + #return '//www.gravatar.com/avatar' if user.nil? + #return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String + #"//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}" end def ios_web_app?