Marking feeds as read when there are no neutral or positive unreads. Dropping negatives.

This commit is contained in:
Samuel Clay 2013-05-16 11:21:20 -07:00
parent 1505e0ba50
commit ca5ef47e02
2 changed files with 2 additions and 4 deletions

View file

@ -439,8 +439,7 @@ class UserSubscription(models.Model):
self.save()
if (self.unread_count_positive == 0 and
self.unread_count_neutral == 0 and
self.unread_count_negative == 0):
self.unread_count_neutral == 0):
self.mark_feed_read()
if not silent:

View file

@ -1087,8 +1087,7 @@ class MSocialSubscription(mongo.Document):
self.save()
if (self.unread_count_positive == 0 and
self.unread_count_neutral == 0 and
self.unread_count_negative == 0):
self.unread_count_neutral == 0):
self.mark_feed_read()
if not silent: