diff options
| -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("/") |
