Ralfp 12 лет назад
Родитель
Сommit
25a727ac9b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      misago/apps/threadtype/posting/newreply.py

+ 1 - 1
misago/apps/threadtype/posting/newreply.py

@@ -87,7 +87,7 @@ class NewReplyBaseView(PostingBaseView):
 
         # Set thread status
         if 'close_thread' in form.cleaned_data:
-            self.thread.closed = form.cleaned_data['close_thread']
+            self.thread.closed = not self.thread.closed
         if 'thread_weight' in form.cleaned_data:
             self.thread.weight = form.cleaned_data['thread_weight']