mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
Enable federated avatars by default (#3997)
This commit is contained in:
parent
1b2ecde1c9
commit
1e185787a9
@ -268,7 +268,7 @@ DISABLE_GRAVATAR = false
|
|||||||
; Federated avatar lookup uses DNS to discover avatar associated
|
; Federated avatar lookup uses DNS to discover avatar associated
|
||||||
; with emails, see https://www.libravatar.org
|
; with emails, see https://www.libravatar.org
|
||||||
; This value will be forced to be false in offline mode or Gravatar is disbaled.
|
; This value will be forced to be false in offline mode or Gravatar is disbaled.
|
||||||
ENABLE_FEDERATED_AVATAR = false
|
ENABLE_FEDERATED_AVATAR = true
|
||||||
|
|
||||||
[attachment]
|
[attachment]
|
||||||
; Whether attachments are enabled. Defaults to `true`
|
; Whether attachments are enabled. Defaults to `true`
|
||||||
|
@ -532,7 +532,7 @@ func NewContext() {
|
|||||||
GravatarSource = source
|
GravatarSource = source
|
||||||
}
|
}
|
||||||
DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
|
DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
|
||||||
EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool()
|
EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool(true)
|
||||||
if OfflineMode {
|
if OfflineMode {
|
||||||
DisableGravatar = true
|
DisableGravatar = true
|
||||||
EnableFederatedAvatar = false
|
EnableFederatedAvatar = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user