From 6a6439c5c2e3399cdf96b0c5c71e600be17e56b1 Mon Sep 17 00:00:00 2001
From: Sandro Santilli <strk@kbt.io>
Date: Sun, 7 Jan 2018 10:41:09 +0100
Subject: [PATCH] Enable Libravatar by default in new installations (#3287)

Pre-existing installs still have it default to off.
This is consistent with OpenID setting.
---
 modules/setting/setting.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 848cdff640a..1a9262c42fb 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