Mercurial > libervia-web
changeset 1472:915c7c2f1729
pages (lists/view): fix node name following use of XEP-0346
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 15 Oct 2021 21:14:29 +0200 |
parents | 83dce05226ac |
children | b4cead3cea43 |
files | libervia/pages/lists/view/page_meta.py |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/pages/lists/view/page_meta.py Fri Oct 15 21:13:35 2021 +0200 +++ b/libervia/pages/lists/view/page_meta.py Fri Oct 15 21:14:29 2021 +0200 @@ -32,6 +32,10 @@ data = self.getRData(request) template_data = request.template_data service, node = data["service"], data["node"] + submitted_node = await self.host.bridgeCall( + "psSchemaSubmittedNodeGet", + node or self.host.ns_map["tickets"] + ) profile = self.getProfile(request) or C.SERVICE_PROFILE self.checkCache(request, C.CACHE_PUBSUB, service=service, node=node, short="tickets") @@ -47,7 +51,7 @@ schema_raw = await self.host.bridgeCall( "psSchemaDictGet", service.full(), - node or self.host.ns_map["tickets"], + submitted_node, profile ) schema = data_format.deserialise(schema_raw) @@ -86,11 +90,13 @@ affiliations = await self.host.bridgeCall( "psNodeAffiliationsGet", service.full() if service else "", - node, + submitted_node, profile ) except BridgeException as e: - log.warning(f"Can't get affiliations for node {node!r} at {service}: {e}") + log.warning( + f"Can't get affiliations for node {submitted_node!r} at {service}: {e}" + ) template_data["owner"] = False else: is_owner = affiliations.get(self.getJid(request).userhost()) == 'owner'