From ca5ef47e024c3dfcdbb51c280996b79c16b6f28a Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Thu, 16 May 2013 11:21:20 -0700 Subject: [PATCH] Marking feeds as read when there are no neutral or positive unreads. Dropping negatives. --- apps/reader/models.py | 3 +-- apps/social/models.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/reader/models.py b/apps/reader/models.py index b40990660..48c9cf25e 100644 --- a/apps/reader/models.py +++ b/apps/reader/models.py @@ -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: diff --git a/apps/social/models.py b/apps/social/models.py index 7cb56f1e2..83a382262 100644 --- a/apps/social/models.py +++ b/apps/social/models.py @@ -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: