Skip to content

Commit 8a9b0e6

Browse files
committed
chore: fixed comment to be more clear
1 parent 734daa9 commit 8a9b0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func SubmitInstall(ctx *context.Context) {
427427

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

0 commit comments

Comments
 (0)