Browse Source

add fallback for gravatar in org/admin view

closes #11095
bergquist 7 years ago
parent
commit
9e2e6fc586
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pkg/api/dtos/models.go

+ 4 - 0
pkg/api/dtos/models.go

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