diff options
author | Sandro Santilli <strk@kbt.io> | 2017-01-22 12:03:38 +0100 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2017-01-22 06:03:38 -0500 |
commit | 1e185787a992f1e9c2a6ab9b45ea4035d2628d18 (patch) | |
tree | 8e62d2bf33313597293e1bc072cba0439f522b47 | |
parent | 1b2ecde1c9783900bf7fa3f4e610304239d3d71b (diff) |
Enable federated avatars by default (#3997)
-rw-r--r-- | conf/app.ini | 2 | ||||
-rw-r--r-- | modules/setting/setting.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/app.ini b/conf/app.ini index 104d530f..19c5c7a9 100644 --- a/conf/app.ini +++ b/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` diff --git a/modules/setting/setting.go b/modules/setting/setting.go index efc82474..5749efa4 100644 --- a/modules/setting/setting.go +++ b/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 |