Moving to shared_story dates for unread counts on social subs.

This commit is contained in:
Samuel Clay 2012-08-10 13:28:35 -07:00
parent 0a4cb3a243
commit 432a26356a

View file

@ -128,7 +128,7 @@ def load_social_stories(request, user_id, username=None):
story['read_status'] = 1
elif not usersubs_map.get(story_feed_id):
story['read_status'] = 0
elif not story.get('read_status') and story['story_date'] < usersubs_map[story_feed_id].mark_read_date:
elif not story.get('read_status') and story['shared_date'] < usersubs_map[story_feed_id].mark_read_date:
story['read_status'] = 1
elif not story.get('read_status') and story['shared_date'] < date_delta:
story['read_status'] = 1