Explorar el Código

Gravatar fallback does not respect 'AppSubUrl'-setting (#12149)

Closes #12148
pari- hace 7 años
padre
commit
9680a3d44d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/api/dtos/models.go

+ 1 - 1
pkg/api/dtos/models.go

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