diff options
author | FChannel <=> | 2021-01-28 20:07:49 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 20:07:49 -0800 |
commit | 0d4cd485b5225cfa737842de6ba0e96d6d21722b (patch) | |
tree | e436f9596e5b34434e53753768455bd755ad8070 /main.go | |
parent | 26db3d04944e838e6de5aeb736c59982ed226c48 (diff) |
removed delete request inside DB delete
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |