浏览代码

Enable federated avatars by default (#3997)

Sandro Santilli 8 年之前
父节点
当前提交
1e185787a9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      conf/app.ini
  2. 1 1
      modules/setting/setting.go

+ 1 - 1
conf/app.ini

@@ -268,7 +268,7 @@ DISABLE_GRAVATAR = false
 ; Federated avatar lookup uses DNS to discover avatar associated
 ; with emails, see https://www.libravatar.org
 ; This value will be forced to be false in offline mode or Gravatar is disbaled.
-ENABLE_FEDERATED_AVATAR = false
+ENABLE_FEDERATED_AVATAR = true
 
 [attachment]
 ; Whether attachments are enabled. Defaults to `true`

+ 1 - 1
modules/setting/setting.go

@@ -532,7 +532,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(true)
 	if OfflineMode {
 		DisableGravatar = true
 		EnableFederatedAvatar = false