mirror of https://gitlab.com/bashrc2/epicyon
Less strict parsing of webfinger type
parent
7bc91cfdef
commit
9446b4ecf9
3
posts.py
3
posts.py
|
@ -173,7 +173,8 @@ def get_user_url(wf_request: {}, source_id: int, debug: bool) -> str:
|
|||
for link in wf_request['links']:
|
||||
if not (link.get('type') and link.get('href')):
|
||||
continue
|
||||
if link['type'] != 'application/activity+json':
|
||||
if 'application/activity+json' not in link['type'] and \
|
||||
'application/ld+json' not in link['type']:
|
||||
continue
|
||||
if '/@' not in link['href']:
|
||||
if debug and not has_users_path(link['href']):
|
||||
|
|
Loading…
Reference in New Issue