add fallback for gravatar in org/admin view

closes #11095
This commit is contained in:
bergquist 2018-03-27 22:52:29 +02:00
parent 2743e8be20
commit 9e2e6fc586

View File

@ -50,6 +50,10 @@ type UserStars struct {
}
func GetGravatarUrl(text string) string {
if setting.DisableGravatar {
return "/public/img/user_profile.png"
}
if text == "" {
return ""
}