diff --git a/server/apiLinstromNotes.go b/server/apiLinstromNotes.go index d54cb2c..37551ee 100644 --- a/server/apiLinstromNotes.go +++ b/server/apiLinstromNotes.go @@ -3,10 +3,10 @@ package server import ( "net/http" - "github.com/google/jsonapi" - "github.com/rs/zerolog/hlog" "git.mstar.dev/mstar/goutils/other" "git.mstar.dev/mstar/linstrom/storage" + "github.com/google/jsonapi" + "github.com/rs/zerolog/hlog" ) // Notes @@ -59,7 +59,7 @@ func linstromGetNote(w http.ResponseWriter, r *http.Request) { func linstromUpdateNote(w http.ResponseWriter, r *http.Request) {} func linstromNewNote(w http.ResponseWriter, r *http.Request) { - store := StorageFromRequest(r) + // store := StorageFromRequest(r) actorId, ok := ActorIdFromRequest(r) log := hlog.FromRequest(r) @@ -95,7 +95,7 @@ func linstromNewNote(w http.ResponseWriter, r *http.Request) { return } - _, _ = store.CreateNote() + // _, _ = store.CreateNoteLocal(creatorId string, rawContent string, contentWarning *string, timestamp time.Time, attachmentIds []string, emoteIds []string, repliesToId *string, quotesId *string, accessLevel storage.NoteAccessLevel, tags []string) } func linstromDeleteNote(w http.ResponseWriter, r *http.Request) {}