##// END OF EJS Templates
Dispatch thread method on post, not get
neko259 -
r1324:de75b1df default
parent child Browse files
Show More
@@ -42,11 +42,6 b' class ThreadView(BaseBoardView, PostMixi'
42 42 except ObjectDoesNotExist:
43 43 raise Http404
44 44
45 if 'method' in request.POST:
46 self.dispatch_method(request, opening_post)
47
48 return redirect('thread', post_id) # FIXME Different for different modes
49
50 45 # If the tag is favorite, update the counter
51 46 settings_manager = get_settings_manager(request)
52 47 favorite = settings_manager.thread_is_fav(opening_post)
@@ -93,6 +88,11 b' class ThreadView(BaseBoardView, PostMixi'
93 88 if not opening_post.is_opening():
94 89 raise Http404
95 90
91 if 'method' in request.POST:
92 self.dispatch_method(request, opening_post)
93
94 return redirect('thread', post_id) # FIXME Different for different modes
95
96 96 if not opening_post.get_thread().archived:
97 97 form = PostForm(request.POST, request.FILES,
98 98 error_class=PlainErrorList)
General Comments 0
You need to be logged in to leave comments. Login now