Browse Source

change gravatar image to match URL scheme

pull/78/head
Christopher Brickley 11 years ago
parent
commit
b9a1d13c29
  1. 2
      models/user.go
  2. 2
      modules/base/tool.go

2
models/user.go

@ -76,7 +76,7 @@ func (user *User) AvatarLink() string {
if base.Service.EnableCacheAvatar {
return "/avatar/" + user.Avatar
}
return "http://1.gravatar.com/avatar/" + user.Avatar
return "//1.gravatar.com/avatar/" + user.Avatar
}
// NewGitSig generates and returns the signature of given user.

2
modules/base/tool.go

@ -143,7 +143,7 @@ func AvatarLink(email string) string {
if Service.EnableCacheAvatar {
return "/avatar/" + EncodeMd5(email)
}
return "http://1.gravatar.com/avatar/" + EncodeMd5(email)
return "//1.gravatar.com/avatar/" + EncodeMd5(email)
}
// Seconds-based time units

Loading…
Cancel
Save