From 43320701efb57c692d2f64761065adccdf06f540 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 16 Oct 2025 21:34:37 -0400 Subject: [PATCH] chore: addressed spelling errors --- models/avatars/avatar_test.go | 4 ++-- routers/install/install.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/avatars/avatar_test.go b/models/avatars/avatar_test.go index cdd2483993..f1f74f7680 100644 --- a/models/avatars/avatar_test.go +++ b/models/avatars/avatar_test.go @@ -19,13 +19,13 @@ const gravatarSource = "https://secure.gravatar.com/avatar/" func disableGravatar(t *testing.T) { err := system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableFederatedAvatar.DynKey(): "false"}) assert.NoError(t, err) - // EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatability; .Value will flip correctly but the true value here is counterintuitive + // EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatibility; .Value will flip correctly but the true value here is counterintuitive err = system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableGravatar.SelectFromKey(): "true"}) assert.NoError(t, err) } func enableGravatar(t *testing.T) { - // EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatability; .Value will flip correctly but the false value here is counterintuitive + // EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatibility; .Value will flip correctly but the false value here is counterintuitive err := system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableGravatar.SelectFromKey(): "false"}) assert.NoError(t, err) setting.GravatarSource = gravatarSource diff --git a/routers/install/install.go b/routers/install/install.go index 6b43acab18..77ebaee9d1 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -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 for backwards compatability; getting the value will properly invert the boolean + // Form is submitted on install and should use the SelectFrom key for backwards compatibility; 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 {