- Clean up some logging - Properly store likes in db
This commit is contained in:
parent
c7f875a9c5
commit
03ca524c99
12 changed files with 222 additions and 44 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue