Browse Source

Dont display negative number of new replies.

Rafał Pitoń 10 years ago
parent
commit
8bacf1acbf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      misago/readtracker/threadstracker.py

+ 2 - 0
misago/readtracker/threadstracker.py

@@ -36,6 +36,8 @@ def make_threads_read_aware(user, threads):
                 thread.unread_replies = 0
             else:
                 thread.unread_replies = thread.replies - record.read_replies
+                if thread.unread_replies < 1:
+                    thread.unread_replies = 1
 
 
 def make_read(threads):