Skip to content

Commit

Permalink
Fix forum thread posting.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffz committed Apr 10, 2017
1 parent bdc17b5 commit 965ee80
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saylua/modules/forums/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def forums_board(board_slug):
new_thread = ForumThread(title=title, author_id=author, board_id=board_id)
db.session.add(new_thread)
db.session.flush()
new_post = ForumPost(author=author, thread_id=new_thread.id, body=body)
new_post = ForumPost(author_id=author, thread_id=new_thread.id, body=body)
db.session.add(new_post)
db.session.commit()
return redirect(board.url())
Expand Down
Binary file added saylua/static/img/items/pinkflower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed saylua/static/img/items/pinkflower3.png
Binary file not shown.
Binary file modified saylua/static/img/minis/lunabat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed saylua/static/img/minis/lunabat1.png
Binary file not shown.
Binary file added saylua/static/img/minis/lunabat_rare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 965ee80

Please sign in to comment.