Detecting email profile property

main
Bob Mottram 2024-08-12 21:47:34 +01:00
parent f0607a03e1
commit 083dc32730
1 changed files with 3 additions and 1 deletions

2
pgp.py
View File

@ -57,6 +57,8 @@ def get_email_address(actor_json: {}) -> str:
continue
name_value_lower = name_value.lower()
if 'email' not in name_value_lower:
if 'e-mail' not in name_value_lower:
if 'electronic mail' not in name_value_lower:
continue
if not property_value.get('type'):
continue