Ændringer så prototype passer til 213eec1813
This commit is contained in:
1 parent
83ca3fdf1b
commit
a405cf772d
8 files changed
+58
-80
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user