def privacy_info_handle(info, anonymous, name=False):
 if anonymous:
  return ('A user' if name else '')
 return info

def privacy_info_handle ( info , anonymous , name = False ) : if anonymous : return ( 'A user' if name else '' ) return info
hide user info from api if anonymous .