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
chore: update pagination for getting all memos (#396)
boojackb7fbbed89534
diff --git a/server/memo.go b/server/memo.goindex 0a987c35c..7fb7ca8b9 100644--- a/server/memo.go+++ b/server/memo.go@@ -341,6 +341,10 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {return list[i].DisplayTs > list[j].DisplayTs})+ if memoFind.Limit != 0 {+ list = list[memoFind.Offset:common.Min(len(list), memoFind.Offset+memoFind.Limit)]+ }+c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)if err := json.NewEncoder(c.Response().Writer).Encode(composeResponse(list)); err != nil {return echo.NewHTTPError(http.StatusInternalServerError, "Failed to encode all memo list response").SetInternal(err)