From ebe9cd644a6b4abb26fdf3175fea2d10d5a72de0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 15 Feb 2022 16:11:22 +0000 Subject: [PATCH] pgp key format before encoding --- pgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgp.py b/pgp.py index 317e97fa1..0e69924c9 100644 --- a/pgp.py +++ b/pgp.py @@ -647,7 +647,7 @@ def actor_to_vcard(actor: {}) -> str: pgp_key = get_pgp_pub_key(actor) if pgp_key: vcard_str += 'KEY:data:application/pgp-keys;base64,' + \ - base64.b64encode(pgp_key).decode('utf-8') + '\n' + base64.b64encode(pgp_key.encode('utf-8')).decode('utf-8') + '\n' email_address = get_email_address(actor) if email_address: vcard_str += 'EMAIL;TYPE=internet:' + email_address + '\n'