mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01: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
|
@ -267,7 +267,7 @@ func Init() error {
|
||||||
enableFederatedAvatar = false
|
enableFederatedAvatar = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if disableGravatar || !enableFederatedAvatar {
|
if enableFederatedAvatar || !disableGravatar {
|
||||||
var err error
|
var err error
|
||||||
GravatarSourceURL, err = url.Parse(setting.GravatarSource)
|
GravatarSourceURL, err = url.Parse(setting.GravatarSource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -69,7 +69,7 @@ func newPictureService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDefaultDisableGravatar() bool {
|
func GetDefaultDisableGravatar() bool {
|
||||||
return !OfflineMode
|
return OfflineMode
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {
|
func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {
|
||||||
|
|
Loading…
Reference in a new issue