Include user e-mails in admin notifications only

Fixes #533.
master
Chris Warrick 5 years ago committed by GitHub
parent c2136ce10a
commit 22abbcdbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save