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: cannot register in production (#91)

Hyobana62c982a3d63
diff --git a/server/system.go b/server/system.go
index 24fc16c70..06a97923a 100644
--- a/server/system.go
+++ b/server/system.go
@@ -29,8 +29,10 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find owner user").SetInternal(err)
}
- // data desensitize
- ownerUser.OpenID = ""
+ if ownerUser != nil {
+ // data desensitize
+ ownerUser.OpenID = ""
+ }
systemStatus := api.SystemStatus{
Owner: ownerUser,