mirror of https://gitlab.com/bashrc2/epicyon
Check that field exists
parent
5ee4ec84aa
commit
5f5fd75f57
|
@ -316,8 +316,9 @@ def _webfinger_update_vcard(wf_json: {}, actor_json: {}) -> bool:
|
||||||
"""Updates the vcard link
|
"""Updates the vcard link
|
||||||
"""
|
"""
|
||||||
for link in wf_json['links']:
|
for link in wf_json['links']:
|
||||||
if link['type'] == 'text/vcard':
|
if link.get('type'):
|
||||||
return False
|
if link['type'] == 'text/vcard':
|
||||||
|
return False
|
||||||
wf_json['links'].append({
|
wf_json['links'].append({
|
||||||
"href": actor_json['url'],
|
"href": actor_json['url'],
|
||||||
"rel": "http://webfinger.net/rel/profile-page",
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
|
Loading…
Reference in New Issue