aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-11-02 01:22:13 -0600
committerraven <citrons@mondecitronne.com>2026-11-02 01:22:13 -0600
commitd51bc7309797ff20b1f1516052c6f4984446e788 (patch)
tree2f484e2a064374bf5139cb1cccac8cb4c6bb8666
parent32f37da6c6c33957a73a98695268ff581041e604 (diff)
fix delete_post
-rw-r--r--apioforum/thread.py1
1 files changed, 1 insertions, 0 deletions
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("/")