Update template_functions.go
Cette révision appartient à :
Parent
03640a0c95
révision
948d6131d8
|
@ -199,6 +199,9 @@ func getAvatar(hash string, size int) string {
|
|||
if hash != "" {
|
||||
return "https://www.gravatar.com/avatar/" + hash + "?s=" + strconv.Itoa(size)
|
||||
} else {
|
||||
if config.IsSukebei() {
|
||||
return "/img/sukebei_avatar_" + strconv.Itoa(size) + ".jpg"
|
||||
}
|
||||
return "/img/avatar_" + strconv.Itoa(size) + ".jpg"
|
||||
}
|
||||
}
|
||||
|
|
Référencer dans un nouveau ticket