From d156c8fd06a84cb3a81a5124d43cae88aa180a09 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 15 Feb 2022 16:15:57 +0000 Subject: [PATCH] Remove html from summary within vcard --- pgp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgp.py b/pgp.py index 0e69924c9..940d7a85a 100644 --- a/pgp.py +++ b/pgp.py @@ -18,6 +18,7 @@ from utils import get_full_domain from utils import get_status_number from utils import local_actor_url from utils import replace_users_with_at +from utils import remove_html from webfinger import webfinger_handle from posts import get_person_box from auth import create_basic_auth_header @@ -641,7 +642,7 @@ def actor_to_vcard(actor: {}) -> str: blog_address = get_blog_address(actor) if blog_address: vcard_str += 'URL:blog:' + blog_address + '\n' - vcard_str += 'NOTE:' + actor['summary'] + '\n' + vcard_str += 'NOTE:' + remove_html(actor['summary']) + '\n' if actor['icon']['url']: vcard_str += 'PHOTO:' + actor['icon']['url'] + '\n' pgp_key = get_pgp_pub_key(actor)