mirror of
https://github.com/discourse/discourse.git
synced 2025-03-19 22:05:52 +08:00
Revert "Merge pull request #2284 from jaimeiniesta/patch-1"
This reverts commit a6b88d1e7e3fdb41e425d1a285dc7a73788d491b, reversing changes made to 9bee0b6e2d60e61df136b81261110cc7dcccc52c.
This commit is contained in:
parent
d523a7b905
commit
f8d9fb7bdc
@ -335,7 +335,7 @@ class User < ActiveRecord::Base
|
|||||||
|
|
||||||
def self.gravatar_template(email)
|
def self.gravatar_template(email)
|
||||||
email_hash = self.email_hash(email)
|
email_hash = self.email_hash(email)
|
||||||
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Don't pass this up to the client - it's meant for server side use
|
# Don't pass this up to the client - it's meant for server side use
|
||||||
|
@ -969,7 +969,7 @@ describe User do
|
|||||||
describe "#gravatar_template" do
|
describe "#gravatar_template" do
|
||||||
|
|
||||||
it "returns a gravatar based template" do
|
it "returns a gravatar based template" do
|
||||||
User.gravatar_template("em@il.com").should == "//www.gravatar.com/avatar/6dc2fde946483a1d8a84b89345a1b638.png?s={size}&r=pg&d=identicon"
|
User.gravatar_template("em@il.com").should == "//www.gravatar.com/avatar/6dc2fde946483a1d8a84b89345a1b638.png?s={size}&r=pg&d=identicon"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user