From 0d4cd485b5225cfa737842de6ba0e96d6d21722b Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 28 Jan 2021 20:07:49 -0800 Subject: removed delete request inside DB delete --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') 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 -- cgit v1.2.3