Include user e-mails in admin notifications only

Fixes #533.
This commit is contained in:
Chris Warrick 2019-02-15 22:50:27 +01:00 committed by GitHub
parent c2136ce10a
commit 22abbcdbb4
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() rv = io.StringIO()
author = comment["author"] or "Anonymous" author = comment["author"] or "Anonymous"
if comment["email"]: if admin and comment["email"]:
author += " <%s>" % comment["email"] author += " <%s>" % comment["email"]
rv.write(author + " wrote:\n") rv.write(author + " wrote:\n")