Просмотр исходного кода

Dont bump replies count on thread start.

Rafał Pitoń 10 лет назад
Родитель
Сommit
c4302ebbd7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      misago/threads/posting/updatestats.py

+ 1 - 1
misago/threads/posting/updatestats.py

@@ -25,7 +25,7 @@ class UpdateStatsMiddleware(PostingMiddleware):
         if self.mode != EDIT:
             self.thread.set_last_post(self.post)
 
-        if self.mode != REPLY:
+        if self.mode == REPLY:
             self.thread.replies += F('replies') + 1
 
         self.thread.save_model = True