diff --git a/modules/fediverse/ap_actor.py b/modules/fediverse/ap_actor.py index 92502947..cc9286b8 100644 --- a/modules/fediverse/ap_actor.py +++ b/modules/fediverse/ap_actor.py @@ -1,4 +1,4 @@ -import email.utils +import email.utils, urllib.parse from src import utils from . import ap_utils diff --git a/modules/fediverse/ap_security.py b/modules/fediverse/ap_security.py index dbb57df7..e36044f7 100644 --- a/modules/fediverse/ap_security.py +++ b/modules/fediverse/ap_security.py @@ -33,4 +33,4 @@ def signature(key: PrivateKey, headers: typing.List[typing.Tuple[str, str]] ) signature = base64.b64encode(signature).decode("ascii") - return SIGNATURE_FORMAT % (key_id, sign_header_keys, signature) + return SIGNATURE_FORMAT % (key.id, sign_header_keys, signature)