##// END OF EJS Templates
Don't allow adding multipost to archived threads
neko259 -
r1140:ea2f237c default
parent child Browse files
Show More
@@ -212,7 +212,7 b' class PostForm(NeboardForm):'
212 for thread_id in threads_id_list:
212 for thread_id in threads_id_list:
213 try:
213 try:
214 thread = Post.objects.get(id=int(thread_id))
214 thread = Post.objects.get(id=int(thread_id))
215 if not thread.is_opening():
215 if not thread.is_opening() or thread.get_thread().archived:
216 raise ObjectDoesNotExist()
216 raise ObjectDoesNotExist()
217 threads.append(thread)
217 threads.append(thread)
218 except (ObjectDoesNotExist, ValueError):
218 except (ObjectDoesNotExist, ValueError):
General Comments 0
You need to be logged in to leave comments. Login now