Mercurial > libervia-backend
diff sat/plugins/plugin_comp_ap_gateway/http_server.py @ 3826:81c79b7cafa7
tests (unit/ap-gateway): tests for XMPP identity/vCard4 <=> AP actor data conversion:
rel 368
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Jun 2022 14:06:33 +0200 |
parents | 0b1c30ff2cbb |
children | 381340b9a9ee |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py Wed Jun 29 12:13:49 2022 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py Wed Jun 29 14:06:33 2022 +0200 @@ -291,7 +291,7 @@ account_jid: jid.JID, node: Optional[str], ap_account: str, - actor_url: str, + ap_url: str, signing_actor: Optional[str] ) -> dict: inbox = self.apg.buildAPURL(TYPE_INBOX, ap_account) @@ -312,7 +312,7 @@ "https://w3id.org/security/v1" ], - "id": actor_url, + "id": ap_url, "type": "Person", "preferredUsername": preferred_username, "inbox": inbox, @@ -320,8 +320,8 @@ "followers": followers, "following": following, "publicKey": { - "id": f"{actor_url}#main-key", - "owner": actor_url, + "id": f"{ap_url}#main-key", + "owner": ap_url, "publicKeyPem": self.apg.public_key_pem }, "endpoints": {