From 2b84d7eb2ac56f72db8d258f8e64761bdc46982d Mon Sep 17 00:00:00 2001 From: mstar Date: Tue, 24 Dec 2024 10:47:26 +0100 Subject: [PATCH] Make it compile again Adding notes still non-functional, but made it compile --- server/apiLinstromNotes.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {}