Check that id exists

main
Bob Mottram 2022-09-15 12:26:22 +01:00
parent a1daf656de
commit 58ad322417
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
signing_priv_key_pem, session) signing_priv_key_pem, session)
if not profile_json: if not profile_json:
return None return None
if not profile_json.get('id'):
return None
person_url = profile_json['id'] person_url = profile_json['id']
search_domain, search_port = get_domain_from_actor(person_url) search_domain, search_port = get_domain_from_actor(person_url)