Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_comp_ap_gateway/ad_hoc.py @ 4343:627f872bc16e
plugin XEP-0050: fix `allowed_magics` arg and calls to `add_ad_hoc_command`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 13 Jan 2025 01:23:22 +0100 |
parents | 0d7bb4df2343 |
children |
comparison
equal
deleted
inserted
replaced
4342:17fa953c8cd7 | 4343:627f872bc16e |
---|---|
42 self._c.add_ad_hoc_command( | 42 self._c.add_ad_hoc_command( |
43 client, | 43 client, |
44 self.xmpp_jid_node_2_ap_actor, | 44 self.xmpp_jid_node_2_ap_actor, |
45 "Convert XMPP JID/Node to AP actor", | 45 "Convert XMPP JID/Node to AP actor", |
46 node=NS_XMPP_JID_NODE_2_AP, | 46 node=NS_XMPP_JID_NODE_2_AP, |
47 allowed_magics=C.ENTITY_ALL, | 47 allowed_magics=[C.ENTITY_ALL], |
48 ) | 48 ) |
49 | 49 |
50 async def xmpp_jid_node_2_ap_actor( | 50 async def xmpp_jid_node_2_ap_actor( |
51 self, | 51 self, |
52 client: SatXMPPEntity, | 52 client: SatXMPPEntity, |