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: visibility param override the user auth state (#1941)
Athurg Gooth11aa01ee2e9b
diff --git a/api/v1/memo.go b/api/v1/memo.goindex 045bf396a..25ce44797 100644--- a/api/v1/memo.go+++ b/api/v1/memo.go@@ -541,14 +541,6 @@ func (s *APIV1Service) registerMemoRoutes(g *echo.Group) {}findMemoMessage.ContentSearch = contentSearch- visibilityListStr := c.QueryParam("visibility")- if visibilityListStr != "" {- visibilityList := []store.Visibility{}- for _, visibility := range strings.Split(visibilityListStr, ",") {- visibilityList = append(visibilityList, store.Visibility(visibility))- }- findMemoMessage.VisibilityList = visibilityList- }if limit, err := strconv.Atoi(c.QueryParam("limit")); err == nil {findMemoMessage.Limit = &limit}