Fixed mismatch follower email

This commit is contained in:
Fergal Moran
2013-05-03 15:58:35 +01:00
parent 84947b5d82
commit 0bc342167c

View File

@@ -89,7 +89,7 @@ class UserProfile(_BaseModel):
def add_follower(self, user):
self.followers.add(user)
try:
send_templated_email([self.user], "notification/new_follower", {"profile": user})
send_templated_email([user], "notification/new_follower", {"profile": self.user})
except Exception, ex:
self.logger.warning("Unable to send email for new follower")
self.logger.warning("Exception: %s" % ex.message)