From 3eeef6b4b635aa99b01452798d8b68c1da687aad Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 13 Feb 2021 21:58:13 +0100 Subject: XEP-0054: fix component handling of vcard requests Fetching the local vcard for the JID from which the stanza originates does not make sense. --- slixmpp/plugins/xep_0054/vcard_temp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/plugins/xep_0054/vcard_temp.py') diff --git a/slixmpp/plugins/xep_0054/vcard_temp.py b/slixmpp/plugins/xep_0054/vcard_temp.py index 5651b611..bee20ce0 100644 --- a/slixmpp/plugins/xep_0054/vcard_temp.py +++ b/slixmpp/plugins/xep_0054/vcard_temp.py @@ -131,7 +131,7 @@ class XEP_0054(BasePlugin): self.api['set_vcard'](jid=iq['from'], args=iq['vcard_temp']) return elif iq['type'] == 'get' and self.xmpp.is_component: - vcard = self.api['get_vcard'](iq['from'].bare) + vcard = self.api['get_vcard'](iq['to'].bare, ifrom=iq['from']) if isinstance(vcard, Iq): vcard.send() else: -- cgit v1.2.3