mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-03 00:44:35 -04:00
#1098 Hide gravatar email field if gravatar is disabled (or offline mode)
This commit is contained in:
parent
6f81c05dde
commit
caf7618ea6
4 changed files with 10 additions and 0 deletions
|
@ -322,6 +322,9 @@ func NewConfigContext() {
|
|||
GravatarSource = "//1.gravatar.com/avatar/"
|
||||
}
|
||||
DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
|
||||
if OfflineMode {
|
||||
DisableGravatar = true
|
||||
}
|
||||
|
||||
if err = Cfg.Section("git").MapTo(&Git); err != nil {
|
||||
log.Fatal(4, "Fail to map Git settings: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue