Show More
@@ -31,11 +31,8 def new_post(request, thread_id = boards | |||
|
31 | 31 | post = Post.objects.create_post(title = title, text = text, ip = ip, |
|
32 | 32 | parent_id = thread_id) |
|
33 | 33 | |
|
34 |
if thread_id |
|
|
35 | request.method = 'GET' | |
|
36 | return thread(request, thread_id) | |
|
37 | else: | |
|
38 | return redirect(thread, id = post.id) | |
|
34 | thread_to_show = post.id if thread_id == boards.models.NO_PARENT else thread_id | |
|
35 | return redirect(thread, id = thread_to_show) | |
|
39 | 36 | |
|
40 | 37 | def tag(request): |
|
41 | 38 | """Get all tag threads (posts without a parent).""" |
General Comments 0
You need to be logged in to leave comments.
Login now