From 22abbcdbb4f98b1b186992cae6691dc19e97c643 Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Fri, 15 Feb 2019 22:50:27 +0100 Subject: [PATCH] Include user e-mails in admin notifications only Fixes #533. --- 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 4ff4671..9fccd25 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -109,7 +109,7 @@ class SMTP(object): rv = io.StringIO() author = comment["author"] or "Anonymous" - if comment["email"]: + if admin and comment["email"]: author += " <%s>" % comment["email"] rv.write(author + " wrote:\n")