From 8f22787c5bb5fdd45c5f6c822c0a4ef95a3a31b0 Mon Sep 17 00:00:00 2001
From: neptune
Date: Sat, 17 Dec 2022 04:53:20 -0300
Subject: Debug

---
 cgi/post.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'cgi')

diff --git a/cgi/post.py b/cgi/post.py
index 741bebb..264f207 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -748,11 +748,11 @@ def deletePost(postid, password, deltype=0, imageonly=False, quick=False):
                 (newlast["timestamp"], threadNumReplies(post["parentid"]), post["parentid"], board["id"]))
     
     if not post['parentid']:
-      logging.info("Unlinking html")
       if board['board_type'] == 1:
         fname = Settings.ROOT_DIR + str(board["dir"]) + "/res/" + str(post["timestamp"]) + ".html"
       else:
         fname = Settings.ROOT_DIR + str(board["dir"]) + "/res/" + str(post["id"]) + ".html"
+      logging.info("Unlinking html " + fname)
 
       try:
         os.unlink(fname)
-- 
cgit v1.2.1-18-gbd029