#1474 logic fix
This commit is contained in:
parent
63799b3c18
commit
384fbeca80
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ func UpdateGravatarSource() {
|
|||
gravatarSource = setting.GravatarSource
|
||||
if strings.HasPrefix(gravatarSource, "//") {
|
||||
gravatarSource = "http:" + gravatarSource
|
||||
} else if !strings.HasPrefix(gravatarSource, "http://") ||
|
||||
} else if !strings.HasPrefix(gravatarSource, "http://") &&
|
||||
!strings.HasPrefix(gravatarSource, "https://") {
|
||||
gravatarSource = "http://" + gravatarSource
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue