diff --git a/webapp_profile.py b/webapp_profile.py index f5a95fc8a..eb6592f18 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -295,6 +295,10 @@ def html_profile_after_search(authorized: bool, return None person_url = profile_json['id'] + person_url2 = person_url + if profile_json.get('url'): + if isinstance(profile_json['url'], str): + person_url2 = remove_html(profile_json['url']) search_domain, search_port = get_domain_from_actor(person_url) if not search_domain: return None @@ -526,6 +530,9 @@ def html_profile_after_search(authorized: bool, profile_str += \ ' \n' + profile_str += \ + ' \n' if not you_follow: if is_moderator(base_dir, nickname): profile_str += \ @@ -560,6 +567,8 @@ def html_profile_after_search(authorized: bool, '