add delete post route

This commit is contained in:
2026-05-20 00:07:06 +03:00
parent d74dd6c5f3
commit a5a3565496
5 changed files with 95 additions and 6 deletions

View File

@@ -192,4 +192,4 @@ def new_post():
content = request.form.get('babycode_content')
thread = Threads.new(user.id, topic.id, title, content)
return redirect(url_for('.thread', slug=thread.slug))
return redirect(url_for('.thread_by_id', thread_id=thread.id))