diff options
| author | raven <citrons@mondecitronne.com> | 2026-11-02 01:22:13 -0600 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-11-02 01:22:13 -0600 |
| commit | d51bc7309797ff20b1f1516052c6f4984446e788 (patch) | |
| tree | 2f484e2a064374bf5139cb1cccac8cb4c6bb8666 | |
| parent | 32f37da6c6c33957a73a98695268ff581041e604 (diff) | |
fix delete_post
| -rw-r--r-- | apioforum/thread.py | 1 |
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("/") |
