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({