# HG changeset patch # User Brian Neal # Date 1260741454 0 # Node ID 35a0e63458157a09385bb072ceed0ffdcbae881b # Parent 152d77265da66dd2dc6fe1d30aea344a61e18d26 Fix bug in the forums unread logic. diff -r 152d77265da6 -r 35a0e6345815 gpp/forums/unread.py --- 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)