summaryrefslogtreecommitdiffstats
path: root/users/views
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-06 14:14:08 -0700
committerAndrew Godwin2022-11-06 14:14:08 -0700
commit52c83c67bbb7c3597d2fcc8fd3554927a252fedb (patch)
treecff1a0a103653c74b18b5abb23900c929c7483ba /users/views
parentdbe57075d386d7474bafc208b654507d9a2d769e (diff)
downloadtakahe-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.py4
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)()