Preventing dupe starred story activities.

This commit is contained in:
Samuel Clay 2012-04-17 10:45:21 -07:00
parent a3f49bbe0d
commit f48e6d6999
2 changed files with 6 additions and 6 deletions

View file

@ -1204,11 +1204,11 @@ class MActivity(mongo.Document):
@classmethod
def new_starred_story(cls, user_id, story_title, story_feed_id, story_id):
cls.objects.create(user_id=user_id,
category='star',
content=story_title,
feed_id=story_feed_id,
content_id=story_id)
cls.objects.get_or_create(user_id=user_id,
category='star',
content=story_title,
feed_id=story_feed_id,
content_id=story_id)
@classmethod
def new_feed_subscription(cls, user_id, feed_id, feed_title):

View file

@ -1 +1 @@
5-oh-2
<body style="background-color: #F0F0F0;"><br><br><center><h1 style="color:#831818;text-shadow:0 1px 0 #FFF">5-oh-2</h1></center></body>