Detecting email profile property

main
Bob Mottram 2024-08-12 21:46:15 +01:00
parent 04b974160b
commit f0607a03e1
1 changed files with 3 additions and 3 deletions

4
pgp.py
View File

@ -55,8 +55,8 @@ def get_email_address(actor_json: {}) -> str:
name_value = property_value['schema:name']
if not name_value:
continue
if not name_value.lower().startswith('email'):
if 'Mail' not in name_value:
name_value_lower = name_value.lower()
if 'email' not in name_value_lower:
continue
if not property_value.get('type'):
continue