Skip to content

Commit 58674e0

Browse files
committed
fix: install should use same setting defaults as before
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 parent 1f30333 commit 58674e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/install/install.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ func Install(ctx *context.Context) {
148148

149149
// Server and other services settings
150150
form.OfflineMode = setting.OfflineMode
151-
form.DisableGravatar = false // when installing, there is no database connection so that given a default value
152-
form.EnableFederatedAvatar = !setting.InstallLock // when installing, there is no database connection so that given a default value
151+
form.DisableGravatar = setting.DisableGravatar // when installing, there is no database connection so that given a default value
152+
form.EnableFederatedAvatar = setting.EnableFederatedAvatar // when installing, there is no database connection so that given a default value
153153

154154
form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn
155155
form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp

0 commit comments

Comments
 (0)