diff options
| author | 2019-09-15 11:56:03 +0100 | |
|---|---|---|
| committer | 2019-09-15 11:56:03 +0100 | |
| commit | 676bb53f434648e24cd8eeac554a18393e3d8b3b (patch) | |
| tree | f86962a431d622a9b9275490e50515a3150c2189 | |
| parent | pass whole PrivateKey object to ap_security, not just the key (diff) | |
| signature | ||
'ap_utils.request' -> 'ap_utils.activity_request'. dont pass privkey
| -rw-r--r-- | modules/fediverse/ap_actor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/fediverse/ap_actor.py b/modules/fediverse/ap_actor.py index 8e2107d7..cbfd1c99 100644 --- a/modules/fediverse/ap_actor.py +++ b/modules/fediverse/ap_actor.py @@ -50,6 +50,6 @@ class Inbox(object): sign_headers.insert(0, ["(request-target)", "post %s" % parts.path]) signature = ap_security.signature(private_key, sign_headers) - return ap_utils.request(self._url, activity.format(self), - method="POST", private_key=private_key) + return ap_utils.activity_request(self._url, activity.format(self), + method="POST") |
