summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2018-01-07 10:41:09 +0100
committerLauris BH <lauris@nix.lv>2018-01-07 11:41:09 +0200
commit6a6439c5c2e3399cdf96b0c5c71e600be17e56b1 (patch)
treecb69af3a5ad424cecfd339425527c2dad03cb3ca /modules/setting
parent87f67fd39283c1233d74727ee356c55bad20646b (diff)
downloadgitea-6a6439c5c2e3399cdf96b0c5c71e600be17e56b1.tar.gz
gitea-6a6439c5c2e3399cdf96b0c5c71e600be17e56b1.zip
Enable Libravatar by default in new installations (#3287)
Pre-existing installs still have it default to off. This is consistent with OpenID setting.
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 848cdff640..1a9262c42f 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -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