From f5ab4f690a5a4d2977bf64988dfc42fefb717129 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 15 Sep 2019 11:54:07 +0100 Subject: [PATCH] pass whole PrivateKey object to ap_security, not just the key --- modules/fediverse/ap_actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fediverse/ap_actor.py b/modules/fediverse/ap_actor.py index f4095721..8e2107d7 100644 --- a/modules/fediverse/ap_actor.py +++ b/modules/fediverse/ap_actor.py @@ -48,7 +48,7 @@ class Inbox(object): ] sign_headers = headers[:] sign_headers.insert(0, ["(request-target)", "post %s" % parts.path]) - signature = ap_security.signature(private_key.key, sign_headers) + signature = ap_security.signature(private_key, sign_headers) return ap_utils.request(self._url, activity.format(self), method="POST", private_key=private_key)