Revert "Merge pull request #2284 from jaimeiniesta/patch-1"

This reverts commit a6b88d1e7e3fdb41e425d1a285dc7a73788d491b, reversing
changes made to 9bee0b6e2d60e61df136b81261110cc7dcccc52c.
This commit is contained in:
Régis Hanol 2014-04-25 11:40:38 +02:00
parent d523a7b905
commit f8d9fb7bdc
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ class User < ActiveRecord::Base
def self.gravatar_template(email)
email_hash = self.email_hash(email)
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&amp;r=pg&amp;d=identicon"
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
end
# Don't pass this up to the client - it's meant for server side use

View File

@ -969,7 +969,7 @@ describe User do
describe "#gravatar_template" do
it "returns a gravatar based template" do
User.gravatar_template("em@il.com").should == "//www.gravatar.com/avatar/6dc2fde946483a1d8a84b89345a1b638.png?s={size}&amp;r=pg&amp;d=identicon"
User.gravatar_template("em@il.com").should == "//www.gravatar.com/avatar/6dc2fde946483a1d8a84b89345a1b638.png?s={size}&r=pg&d=identicon"
end
end