No dupe follow activities or interactions.

This commit is contained in:
Samuel Clay 2012-04-16 20:10:00 -07:00
parent ffcb9b4ed4
commit a3f49bbe0d

View file

@ -1136,7 +1136,7 @@ class MInteraction(mongo.Document):
@classmethod
def new_follow(cls, follower_user_id, followee_user_id):
cls.objects.create(user_id=followee_user_id,
cls.objects.get_or_create(user_id=followee_user_id,
with_user_id=follower_user_id,
category='follow')
@ -1219,7 +1219,7 @@ class MActivity(mongo.Document):
@classmethod
def new_follow(cls, follower_user_id, followee_user_id):
cls.objects.create(user_id=follower_user_id,
cls.objects.get_or_create(user_id=follower_user_id,
with_user_id=followee_user_id,
category='follow')