Merge pull request #535 from Kwpolska/patch-1

Include user e-mails in admin notifications only
This commit is contained in:
Jelmer Vernooij 2019-02-16 00:47:02 +00:00 committed by GitHub
commit 8c82ffde9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")