Add notes to note store when shared
This commit is contained in:
parent
8340647f08
commit
a54abeaea2
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ func share(w http.ResponseWriter, r *http.Request) {
|
|||
viewer := r.FormValue("viewer")
|
||||
note.AddViewer(viewer)
|
||||
note.Save()
|
||||
notes.Notes.Add(note, viewer)
|
||||
|
||||
http.Redirect(w, r, myurls.Reverse("view", urls.Repl{"note": note.Uid}), http.StatusFound)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue