Do not expose mail addresses

This commit is contained in:
Armin Ronacher 2010-07-23 15:12:51 +01:00
parent 32891461b7
commit d039e5d9af

View file

@ -39,6 +39,7 @@ class Mail(object):
def to_json(self):
rv = vars(self).copy()
rv.pop('author_email', None)
rv['date'] = http_date(rv['date'])
rv['children'] = [c.to_json() for c in rv['children']]
return rv