Cleanup, store likes
Some checks failed
/ docker (push) Failing after 3m1s

- Clean up some logging
- Properly store likes in db
This commit is contained in:
Melody Becker 2025-05-06 22:18:28 +02:00
parent c7f875a9c5
commit 03ca524c99
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
12 changed files with 222 additions and 44 deletions

View file

@ -55,6 +55,7 @@ func postAs(w http.ResponseWriter, r *http.Request) {
}
n := dbgen.Note
note := models.Note{
ID: shared.NewId(),
Creator: *user,
CreatorId: user.ID,
RawContent: data.Content,
@ -66,6 +67,7 @@ func postAs(w http.ResponseWriter, r *http.Request) {
OriginId: 1,
}
err = n.Select(
n.ID,
n.CreatorId,
n.RawContent,
n.Remote,