pubkey = privkey.publickey()
DATABASE["actorKeys"] = {
- "publicKey": pubkey.exportKey('PEM'),
- "privateKey": privkey.exportKey('PEM')
+ "publicKey": pubkey.exportKey('PEM').decode('utf-8'),
+ "privateKey": privkey.exportKey('PEM').decode('utf-8')
}
message = {
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Announce",
- "to": ["https://{}/actor/followers".format(request.host)],
+ "to": ["https://{}/followers".format(request.host)],
"actor": "https://{}/actor".format(request.host),
"object": object_id,
"id": activity_id