Ændringer så prototype passer til 213eec1813

This commit is contained in:
Mikkel
2022-06-02 16:23:55 +02:00
parent 83ca3fdf1b
commit a405cf772d
8 changed files with 58 additions and 80 deletions

View File

@ -23,7 +23,7 @@ def show(thread_id):
form = SendMessageForm()
if form.validate_on_submit():
insert_message(form.besked.data, thread_id, current_user.user_id)
insert_message(form.besked.data, thread_id, current_user.cpr_num)
return redirect(f"/threads/{thread_id}")
return render_template("thread_show.html", thread=thread, messages=thread.get_messages(), form=form)