瀏覽代碼

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

Closes #12148
pari- 7 年之前
父節點
當前提交
9680a3d44d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 == "" {