command dump
This commit is contained in:
parent
bb0bc0a240
commit
a641854cad
7 changed files with 43 additions and 28 deletions
|
@ -140,7 +140,9 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string
|
|||
|
||||
// AvatarLink returns avatar link by given e-mail.
|
||||
func AvatarLink(email string) string {
|
||||
if Service.EnableCacheAvatar {
|
||||
if DisableGravatar {
|
||||
return "/img/avatar_default.jpg"
|
||||
} else if Service.EnableCacheAvatar {
|
||||
return "/avatar/" + EncodeMd5(email)
|
||||
}
|
||||
return "//1.gravatar.com/avatar/" + EncodeMd5(email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue