Fix bug of DisableGravatar default value (#22296)

#18058 made a mistake. The disableGravatar's default value depends on
`OfflineMode`. If it's `true`, then `disableGravatar` is true, otherwise
it's `false`. But not opposite.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
Lunny XiaoandKN4CK3R authored and GitHub committed 2023-01-01 20:19:23 +08:00
1 parent 2bbf9e7302
commit 9c8fc7f677
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ func newPictureService() {
}
func GetDefaultDisableGravatar() bool {
return !OfflineMode
return OfflineMode
}
func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {