This commit is contained in:
parent
75fe62e58a
commit
f8b7bd0710
@ -215,7 +215,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
|
||||
else:
|
||||
who = requests.get(instance.author).json()['name']
|
||||
except:
|
||||
who = "Personne inconnue"
|
||||
who = "Quelqu'un"
|
||||
|
||||
# get identifier for resource triggering notification, and store in where
|
||||
try:
|
||||
@ -224,7 +224,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
|
||||
else:
|
||||
where = requests.get(instance.object).json()['name']
|
||||
except:
|
||||
where = "Endroit inconnu"
|
||||
where = "le chat"
|
||||
|
||||
if who == where:
|
||||
where = "t'a envoyé un message privé"
|
||||
|
Loading…
Reference in New Issue
Block a user