summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-03-15 12:49:03 -0700
committerSteve Manuel <nilslice@gmail.com>2017-03-15 12:49:03 -0700
commit8684ca00eedc5799ae954f8149d4beeeb8e236bf (patch)
tree70e4f4306502171e15ccf7aafd41fa9dfadf7b4d /system/admin/handlers.go
parent4f90b228e1f145340ae4c9a6fc83b2a2cf0a86fa (diff)
updating DeleteContent signature to remove requirement of url.Values, will instead to a lookup in content before the delete to get slug, etc
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 56efc0c..a585faa 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -1409,7 +1409,7 @@ func approveContentHandler(res http.ResponseWriter, req *http.Request) {
}
if pendingID != "" {
- err = db.DeleteContent(req.FormValue("type")+":"+pendingID, req.Form)
+ err = db.DeleteContent(req.FormValue("type") + ":" + pendingID)
if err != nil {
log.Println("Failed to remove content after approval:", err)
}
@@ -1757,7 +1757,7 @@ func deleteHandler(res http.ResponseWriter, req *http.Request) {
return
}
- err = db.DeleteContent(t+":"+id, req.Form)
+ err = db.DeleteContent(t + ":" + id)
if err != nil {
log.Println(err)
res.WriteHeader(http.StatusInternalServerError)