fix wrong variable in edit post route

This commit is contained in:
2025-08-16 06:08:08 +03:00
parent 2b1f52a99d
commit 4a8f87d64a

View File

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