Do not expose mail addresses
This commit is contained in:
parent
32891461b7
commit
d039e5d9af
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue