diff options
author | Andrew Godwin | 2022-11-06 14:14:08 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-06 14:14:08 -0700 |
commit | 52c83c67bbb7c3597d2fcc8fd3554927a252fedb (patch) | |
tree | cff1a0a103653c74b18b5abb23900c929c7483ba /users/views | |
parent | dbe57075d386d7474bafc208b654507d9a2d769e (diff) | |
download | takahe-52c83c67bbb7c3597d2fcc8fd3554927a252fedb.tar.gz takahe-52c83c67bbb7c3597d2fcc8fd3554927a252fedb.tar.bz2 takahe-52c83c67bbb7c3597d2fcc8fd3554927a252fedb.zip |
Signing works with OpenSSL.
Will have to ask the cryptography peeps what I was doing wrong.
Diffstat (limited to 'users/views')
-rw-r--r-- | users/views/identity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/views/identity.py b/users/views/identity.py index 1beef2a..7134cf9 100644 --- a/users/views/identity.py +++ b/users/views/identity.py @@ -133,7 +133,7 @@ class Actor(View): "inbox": identity.urls.inbox.full(), "preferredUsername": identity.username, "publicKey": { - "id": identity.urls.actor.full() + "#main-key", + "id": identity.urls.key.full(), "owner": identity.urls.actor.full(), "publicKeyPem": identity.public_key, }, @@ -181,7 +181,7 @@ class Inbox(View): print(headers_string) print(document) # Find the Identity by the actor on the incoming item - identity = Identity.by_actor_uri(document["actor"], create=True) + identity = Identity.by_actor_uri_with_create(document["actor"]) if not identity.public_key: # See if we can fetch it right now async_to_sync(identity.fetch_actor)() |