mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 22:53:54 +03:00
Fix bug of DisableGravatar default value (#22297)
backport #22296 Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
parent
443fd27a90
commit
f1e07d8c87
2 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ func Init() error {
|
|||
enableFederatedAvatar = false
|
||||
}
|
||||
|
||||
if disableGravatar || !enableFederatedAvatar {
|
||||
if enableFederatedAvatar || !disableGravatar {
|
||||
var err error
|
||||
GravatarSourceURL, err = url.Parse(setting.GravatarSource)
|
||||
if err != nil {
|
||||
|
|
|
@ -69,7 +69,7 @@ func newPictureService() {
|
|||
}
|
||||
|
||||
func GetDefaultDisableGravatar() bool {
|
||||
return !OfflineMode
|
||||
return OfflineMode
|
||||
}
|
||||
|
||||
func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {
|
||||
|
|
Loading…
Reference in a new issue