changeset 148:35a0e6345815

Fix bug in the forums unread logic.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2009 21:57:34 +0000
parents 152d77265da6
children ab7830b067b3
files gpp/forums/unread.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/unread.py	Sun Dec 13 08:11:16 2009 +0000
+++ b/gpp/forums/unread.py	Sun Dec 13 21:57:34 2009 +0000
@@ -72,7 +72,8 @@
                 TopicLastVisit.objects.filter(user=user, topic__forum=forum,
                         last_visit__lt=min_date).delete()
 
-            topics = Topic.objects.filter(creation_date__gt=flv.begin_date)
+            topics = Topic.objects.filter(forum=forum, 
+                    creation_date__gt=flv.begin_date)
             tracked_topics = TopicLastVisit.objects.filter(user=user,
                     topic__forum=forum, last_visit__gt=flv.begin_date)