use one of gravatar's default avatars rather than our own

This commit is contained in:
joshua stein 2014-01-21 00:22:40 -06:00
parent e6ce3a5d68
commit 00f8e9c189
2 changed files with 2 additions and 4 deletions

View file

@ -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