mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-09-11 15:26:07 +00:00
Categories: Log category mutations
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user