Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: OpenID was disappear sometimes (#1886)

Athurg Gooth833fd238207f
diff --git a/api/v1/system.go b/api/v1/system.go
index 21f9d7bd8..f3091957f 100644
--- a/api/v1/system.go
+++ b/api/v1/system.go
@@ -74,10 +74,10 @@ func (s *APIV1Service) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find host user").SetInternal(err)
}
if hostUser != nil {
- // data desensitize
- hostUser.OpenID = ""
- hostUser.Email = ""
systemStatus.Host = converUserFromStore(hostUser)
+ // data desensitize
+ systemStatus.Host.OpenID = ""
+ systemStatus.Host.Email = ""
}
systemSettingList, err := s.Store.ListSystemSettings(ctx, &store.FindSystemSetting{})