Move /actor to /owner/actor
Committed 5faf5b
--- a/webint_owner/__init__.py
+++ b/webint_owner/__init__.py
return "Passphrase must be manually deleted first."
-@app.control("actor", prefixed=False)
+@app.control("actor")
class ActivityPubActor:
"""."""
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
],
- "id": f"{tx.origin}/actor",
+ "id": f"{tx.origin}/owner/actor",
"type": "Person",
"preferredUsername": tx.host.owner["nickname"][0],
"name": tx.host.owner["name"][0],
"summary": tx.host.owner["note"][0],
"inbox": f"{tx.origin}/inbox",
"publicKey": {
- "id": f"{tx.origin}/actor#main-key",
- "owner": f"{tx.origin}/actor",
+ "id": f"{tx.origin}/owner/actor#main-key",
+ "owner": f"{tx.origin}/owner/actor",
"publicKeyPem": pubkey,
},
}
{
"rel": "self",
"type": "application/activity+json",
- "href": f"{tx.origin}/actor",
+ "href": f"{tx.origin}/owner/actor",
},
{
"rel": "http://ostatus.org/schema/1.0/subscribe",