|
|
@ -45,7 +45,7 @@ func UpdateGravatarSource() { |
|
|
|
gravatarSource = setting.GravatarSource |
|
|
|
gravatarSource = setting.GravatarSource |
|
|
|
if strings.HasPrefix(gravatarSource, "//") { |
|
|
|
if strings.HasPrefix(gravatarSource, "//") { |
|
|
|
gravatarSource = "http:" + gravatarSource |
|
|
|
gravatarSource = "http:" + gravatarSource |
|
|
|
} else if !strings.HasPrefix(gravatarSource, "http://") || |
|
|
|
} else if !strings.HasPrefix(gravatarSource, "http://") && |
|
|
|
!strings.HasPrefix(gravatarSource, "https://") { |
|
|
|
!strings.HasPrefix(gravatarSource, "https://") { |
|
|
|
gravatarSource = "http://" + gravatarSource |
|
|
|
gravatarSource = "http://" + gravatarSource |
|
|
|
} |
|
|
|
} |
|
|
|