diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -31,11 +31,8 @@ def new_post(request, thread_id = boards post = Post.objects.create_post(title = title, text = text, ip = ip, parent_id = thread_id) - if thread_id != boards.models.NO_PARENT: - request.method = 'GET' - return thread(request, thread_id) - else: - return redirect(thread, id = post.id) + thread_to_show = post.id if thread_id == boards.models.NO_PARENT else thread_id + return redirect(thread, id = thread_to_show) def tag(request): """Get all tag threads (posts without a parent)."""