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
|
||||
|
||||
def avatar_url
|
||||
"https://secure.gravatar.com/avatar/" <<
|
||||
Digest::MD5.hexdigest(self.email.strip.downcase) << "?r=pg&d=" <<
|
||||
CGI.escape(Rails.application.routes.url_helpers.root_url +
|
||||
"images/1x1t.gif") << "&s=100"
|
||||
"https://secure.gravatar.com/avatar/" +
|
||||
Digest::MD5.hexdigest(self.email.strip.downcase) + "?r=pg&d=mm&s=100"
|
||||
end
|
||||
|
||||
def average_karma
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 44 B |
Loading…
Reference in a new issue