From 36d4ceb2d91355f2ec4a8f6a5b64c714bc9765f2 Mon Sep 17 00:00:00 2001 From: Pelle Nilsson Date: Thu, 19 Apr 2018 20:48:13 +0200 Subject: [PATCH] Don't send notification when someone responds to his/her own comment --- isso/ext/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index f14a9af..6865551 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -145,7 +145,7 @@ class SMTP(object): for comment_to_notify in comments_to_notify: email = comment_to_notify["email"] if "email" in comment_to_notify and comment_to_notify["notification"] and email not in notified \ - and comment_to_notify["id"] != comment["id"]: + and comment_to_notify["id"] != comment["id"] and email != comment["email"]: body = self.format(thread, comment, comment_to_notify, admin=False) subject = "Re: New comment posted on %s" % thread["title"] self.sendmail(subject, body, thread, comment, to=email)