Jason Song
e902b98cc2
Set disable_gravatar/enable_federated_avatar when offline mode is true ( #22479 ) ( #22496 )
...
Backport #22479 .
When offline mode is true, we should set `disable_gravatar` to `true`
and `enable_federated_avatar` to `false` in system settings.
2 years ago
Lunny Xiao
16d7596635
Fix set system setting failure once it cached ( #22334 )
...
backport #22333
2 years ago
Lunny Xiao
0cca1e079b
fix gravatar disable bug ( #22337 )
2 years ago
Lunny Xiao
0697075547
Fix get system setting bug when enabled redis cache ( #22298 )
...
backport #22295 , fix #22281
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
Lunny Xiao
f1e07d8c87
Fix bug of DisableGravatar default value ( #22297 )
...
backport #22296
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2 years ago
Lunny Xiao
b9dcf991b9
Fix dashboard ignored system setting cache ( #21621 ) ( #21759 )
...
backport #21621
This is a performance regression from #18058
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
2 years ago
delvh
0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ( #21551 )
...
Found using
`find . -type f -name '*.go' -print -exec vim {} -c
':%s/fmt\.Errorf(\(.*\)%v\(.*\)err/fmt.Errorf(\1%w\2err/g' -c ':wq' \;`
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
Lunny Xiao
f860a6d2e4
Add system setting table with cache and also add cache supports for user setting ( #18058 )
2 years ago