From 58ad3224178333ee5502bcacf2e8a7a7cbbf1fa2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Sep 2022 12:26:22 +0100 Subject: [PATCH] Check that id exists --- webapp_profile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_profile.py b/webapp_profile.py index c352a61d8..4297e98f9 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -184,6 +184,8 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int, signing_priv_key_pem, session) if not profile_json: return None + if not profile_json.get('id'): + return None person_url = profile_json['id'] search_domain, search_port = get_domain_from_actor(person_url)