Browse Source

Merge pull request #78 from compressed/master

change gravatar image to match URL scheme
for-closed-social
shengxiang[skyblue] 10 years ago
parent
commit
df0c61cc62
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      models/user.go
  2. +1
    -1
      modules/base/tool.go

+ 1
- 1
models/user.go View File

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

+ 1
- 1
modules/base/tool.go View File

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