From 9446b4ecf9b8b38bae1e35335e78e90e25803c2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Dec 2022 19:35:10 +0000 Subject: [PATCH] Less strict parsing of webfinger type --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index c27a7a0a1..3d11250b2 100644 --- a/posts.py +++ b/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']):