mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add visibility
field to memo (#109)
* feat: add `visibility` field to memo * chore: fix typo
This commit is contained in:
@ -22,6 +22,9 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {
|
||||
return echo.NewHTTPError(http.StatusBadRequest, "Malformatted post memo request").SetInternal(err)
|
||||
}
|
||||
|
||||
// TODO(steven): remove this line after frontend is ready
|
||||
memoCreate.Visibility = api.Privite
|
||||
|
||||
memo, err := s.Store.CreateMemo(memoCreate)
|
||||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to create memo").SetInternal(err)
|
||||
|
Reference in New Issue
Block a user