Commit 9f40ad74 by Carl Bergquist Committed by GitHub

Merge pull request #11118 from bergquist/missing_icon_disabled_gravatar

fixes invalid link to profile pic when gravatar is disabled
parents 0780d575 59345211
......@@ -74,7 +74,7 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
}
if setting.DisableGravatar {
data.User.GravatarUrl = setting.AppSubUrl + "/public/img/transparent.png"
data.User.GravatarUrl = setting.AppSubUrl + "/public/img/user_profile.png"
}
if len(data.User.Name) == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment