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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: no user settings returns when patch user (#622)
Zeng19980402cb7b27f4
diff --git a/server/user.go b/server/user.goindex 0927091a8..5adbdfd7c 100644--- a/server/user.go+++ b/server/user.go@@ -223,6 +223,14 @@ func (s *Server) registerUserRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusInternalServerError, "Failed to patch user").SetInternal(err)}+ userSettingList, err := s.Store.FindUserSettingList(ctx, &api.UserSettingFind{+ UserID: userID,+ })+ if err != nil {+ return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find userSettingList").SetInternal(err)+ }+ user.UserSettingList = userSettingList+c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)if err := json.NewEncoder(c.Response().Writer).Encode(composeResponse(user)); err != nil {return echo.NewHTTPError(http.StatusInternalServerError, "Failed to encode user response").SetInternal(err)