Check that field exists

main
Bob Mottram 2022-02-24 11:17:32 +00:00
parent 5ee4ec84aa
commit 5f5fd75f57
1 changed files with 3 additions and 2 deletions

View File

@ -316,6 +316,7 @@ def _webfinger_update_vcard(wf_json: {}, actor_json: {}) -> bool:
"""Updates the vcard link
"""
for link in wf_json['links']:
if link.get('type'):
if link['type'] == 'text/vcard':
return False
wf_json['links'].append({