Enable federated avatars by default (#3997)

pull/3960/merge
Sandro Santilli 2017-01-22 12:03:38 +01:00 committed by 无闻
parent 1b2ecde1c9
commit 1e185787a9
2 changed files with 2 additions and 2 deletions

View File

@ -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`

View File

@ -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