aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 20:07:49 -0800
committerFChannel <=>2021-01-28 20:07:49 -0800
commit0d4cd485b5225cfa737842de6ba0e96d6d21722b (patch)
treee436f9596e5b34434e53753768455bd755ad8070 /main.go
parent26db3d04944e838e6de5aeb736c59982ed226c48 (diff)
removed delete request inside DB delete
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 67ce815..41c0da4 100644
--- a/main.go
+++ b/main.go
@@ -703,10 +703,12 @@ func main() {
isOP := CheckIfObjectOP(db, obj.Id)
if !isOP {
+ DeleteObjectRequest(db, id)
DeleteObject(db, obj.Id)
http.Redirect(w, r, r.Header.Get("Referer"), http.StatusSeeOther)
return
} else {
+ DeleteObjectAndRepliesRequest(db, id)
DeleteObjectAndReplies(db, obj.Id)
http.Redirect(w, r, r.Header.Get("Referer"), http.StatusSeeOther)
return