actor: add missing fields

This commit is contained in:
William Pitcock 2018-08-10 15:14:51 -05:00
parent 257aeb5c4e
commit 2d16ed3cde

View file

@ -30,12 +30,14 @@ async def actor(request):
"inbox": "https://{}/inbox".format(request.host), "inbox": "https://{}/inbox".format(request.host),
"name": "Viera", "name": "Viera",
"type": "Application", "type": "Application",
"id": "https://{}/actor".format(request.host),
"publicKey": { "publicKey": {
"id": "https://{}/actor#main-key".format(request.host), "id": "https://{}/actor#main-key".format(request.host),
"owner": "https://{}/actor".format(request.host), "owner": "https://{}/actor".format(request.host),
"publicKeyPem": DATABASE["actorKeys"]["publicKey"] "publicKeyPem": DATABASE["actorKeys"]["publicKey"]
}, },
"summary": "Viera, the bot" "summary": "Viera, the bot",
"preferredUsername": "viera"
} }
return aiohttp.web.json_response(data) return aiohttp.web.json_response(data)