From d51bc7309797ff20b1f1516052c6f4984446e788 Mon Sep 17 00:00:00 2001 From: raven Date: Mon, 2 Nov 2026 01:22:13 -0600 Subject: fix delete_post --- apioforum/thread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apioforum/thread.py b/apioforum/thread.py index 189dcb7..88cc426 100644 --- a/apioforum/thread.py +++ b/apioforum/thread.py @@ -295,6 +295,7 @@ def create_post(thread_id): def delete_post(post_id): db = get_db() post = db.execute("SELECT * FROM posts WHERE id = ?",(post_id,)).fetchone() + thread = thread_info(post['thread']) if post is None: flash("that post doesn't exist") return redirect("/") -- cgit v1.2.3