##// 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 except ObjectDoesNotExist:
42 except ObjectDoesNotExist:
43 raise Http404
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 # If the tag is favorite, update the counter
45 # If the tag is favorite, update the counter
51 settings_manager = get_settings_manager(request)
46 settings_manager = get_settings_manager(request)
52 favorite = settings_manager.thread_is_fav(opening_post)
47 favorite = settings_manager.thread_is_fav(opening_post)
@@ -93,6 +88,11 b' class ThreadView(BaseBoardView, PostMixi'
93 if not opening_post.is_opening():
88 if not opening_post.is_opening():
94 raise Http404
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 if not opening_post.get_thread().archived:
96 if not opening_post.get_thread().archived:
97 form = PostForm(request.POST, request.FILES,
97 form = PostForm(request.POST, request.FILES,
98 error_class=PlainErrorList)
98 error_class=PlainErrorList)
General Comments 0
You need to be logged in to leave comments. Login now