support duoshuo mirror of gravatar

This commit is contained in:
Unknwon 2014-11-16 20:27:04 -05:00
parent 4c770b87c5
commit 340a4595dd
8 changed files with 20 additions and 6 deletions

View file

@ -180,7 +180,7 @@ func AvatarLink(email string) string {
} else if setting.Service.EnableCacheAvatar {
return setting.AppSubUrl + "/avatar/" + EncodeMd5(email)
}
return "//1.gravatar.com/avatar/" + EncodeMd5(email)
return setting.GravatarSource + EncodeMd5(email)
}
// Seconds-based time units