1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00

Categories: Log category mutations

This commit is contained in:
Timur Ismagilov 2022-04-02 00:45:58 +03:00
parent e69c1dc2f9
commit 9d971871eb

View File

@ -52,6 +52,7 @@ func handlerRemoveFromCategory(w http.ResponseWriter, rq *http.Request) {
http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
return
}
log.Println(user.FromRequest(rq).Name, "removed", hyphaName, "from", catName)
removeHyphaFromCategory(hyphaName, catName)
http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
}
@ -72,6 +73,7 @@ func handlerAddToCategory(w http.ResponseWriter, rq *http.Request) {
http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
return
}
log.Println(user.FromRequest(rq).Name, "added", hyphaName, "to", catName)
addHyphaToCategory(hyphaName, catName)
http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
}