From 1e185787a992f1e9c2a6ab9b45ea4035d2628d18 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 22 Jan 2017 12:03:38 +0100 Subject: [PATCH] Enable federated avatars by default (#3997) --- conf/app.ini | 2 +- modules/setting/setting.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.ini b/conf/app.ini index 104d530f3..19c5c7a9c 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 efc824745..5749efa42 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