Marking shared stories as read.

This commit is contained in:
Samuel Clay 2012-09-24 13:45:37 -07:00
parent cff4b404fe
commit 132ef7db20

View file

@ -286,6 +286,12 @@ def share_story(request, token):
shared_story.save()
logging.user(profile.user, "~BM~FY~SBUpdating~SN shared story from site: ~SB%s: %s" % (story_url, comments))
socialsub = MSocialSubscription.objects.get(user_id=profile.user.pk,
subscription_user_id=profile.user.pk)
socialsub.mark_story_ids_as_read([shared_story.story_guid],
shared_story.story_feed_id,
request=request)
shared_story.publish_update_to_subscribers()
response = HttpResponse(json.encode({