0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-17 22:36:04 +01:00

chore: fixed comment to be more clear

This commit is contained in:
Mark Brown 2025-10-16 21:08:36 -04:00
parent 734daa9684
commit 8a9b0e6421
No known key found for this signature in database

View File

@ -427,7 +427,7 @@ func SubmitInstall(ctx *context.Context) {
cfg.Section("server").Key("OFFLINE_MODE").SetValue(strconv.FormatBool(form.OfflineMode))
if err := system_model.SetSettings(ctx, map[string]string{
// Form is submitted on install and should use the SelectFrom key and inverted this enter
// Form is submitted on install and should use the SelectFrom key for backwards compatability; getting the value will properly invert the boolean
setting.Config().Picture.EnableGravatar.SelectFromKey(): strconv.FormatBool(!form.EnableGravatar),
setting.Config().Picture.EnableFederatedAvatar.DynKey(): strconv.FormatBool(form.EnableFederatedAvatar),
}); err != nil {