0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 05:02:49 +01:00

Enable Libravatar by default in new installations (#3287)

Pre-existing installs still have it default to off.
This is consistent with OpenID setting.
This commit is contained in:
Sandro Santilli 2018-01-07 10:41:09 +01:00 committed by Lauris BH
parent 87f67fd392
commit 6a6439c5c2

View file

@ -1038,7 +1038,7 @@ func NewContext() {
GravatarSource = source
}
DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool()
EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool(!InstallLock)
if OfflineMode {
DisableGravatar = true
EnableFederatedAvatar = false