mark gravatar-url as deprecated
This commit is contained in:
parent
b378a03afa
commit
7074a1edf7
|
@ -59,12 +59,13 @@ module ApplicationHelper
|
||||||
((!current_user.nil?) && ((current_user == user) || current_user.mod?)) ? true : false
|
((!current_user.nil?) && ((current_user == user) || current_user.mod?)) ? true : false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @deprecated Use {User#profile_picture.url} instead.
|
||||||
def gravatar_url(user)
|
def gravatar_url(user)
|
||||||
return user.profile_picture.url
|
return user.profile_picture.url
|
||||||
# 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)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def ios_web_app?
|
def ios_web_app?
|
||||||
|
|
Loading…
Reference in New Issue