From 4a8f87d64a0cdbe95de9b7519deefd2dafeb48c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 16 Aug 2025 06:08:08 +0300 Subject: [PATCH] fix wrong variable in edit post route --- app/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/posts.py b/app/routes/posts.py index 1d4b637..6138d54 100644 --- a/app/routes/posts.py +++ b/app/routes/posts.py @@ -33,7 +33,7 @@ def create_post(thread_id, user_id, content, markup_language="babycode"): def update_post(post_id, new_content, markup_language='babycode'): - parsed_content = babycode_to_html(content) + parsed_content = babycode_to_html(new_content) with db.transaction(): post = Posts.find({'id': post_id}) new_revision = PostHistory.create({