mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-06 08:54:12 +00:00
Fixed mismatch follower email
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user