Merge pull request #535 from Kwpolska/patch-1
Include user e-mails in admin notifications only
This commit is contained in:
commit
8c82ffde9f
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user