Added create issue

This commit is contained in:
Unknown 2014-03-25 12:12:27 -04:00
parent 23d103c721
commit 2fa8d0c8dd
14 changed files with 34 additions and 52 deletions

View file

@ -102,7 +102,10 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string
// AvatarLink returns avatar link by given e-mail.
func AvatarLink(email string) string {
return "/avatar/" + EncodeMd5(email)
if Service.EnableCacheAvatar {
return "/avatar/" + EncodeMd5(email)
}
return "http://1.gravatar.com/avatar/" + EncodeMd5(email)
}
// Seconds-based time units