use one of gravatar's default avatars rather than our own
This commit is contained in:
parent
e6ce3a5d68
commit
00f8e9c189
|
@ -69,10 +69,8 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def avatar_url
|
def avatar_url
|
||||||
"https://secure.gravatar.com/avatar/" <<
|
"https://secure.gravatar.com/avatar/" +
|
||||||
Digest::MD5.hexdigest(self.email.strip.downcase) << "?r=pg&d=" <<
|
Digest::MD5.hexdigest(self.email.strip.downcase) + "?r=pg&d=mm&s=100"
|
||||||
CGI.escape(Rails.application.routes.url_helpers.root_url +
|
|
||||||
"images/1x1t.gif") << "&s=100"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def average_karma
|
def average_karma
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 44 B |
Loading…
Reference in a new issue