summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0054
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-13 21:58:13 +0100
committermathieui <mathieui@mathieui.net>2021-02-13 21:58:13 +0100
commit3eeef6b4b635aa99b01452798d8b68c1da687aad (patch)
tree755458d51d1b6a2d7b0d0af725fce2dc7ce609e3 /slixmpp/plugins/xep_0054
parentf50dfd6644aa004ae0c6cad41cf131273bc49663 (diff)
downloadslixmpp-3eeef6b4b635aa99b01452798d8b68c1da687aad.tar.gz
slixmpp-3eeef6b4b635aa99b01452798d8b68c1da687aad.tar.bz2
slixmpp-3eeef6b4b635aa99b01452798d8b68c1da687aad.tar.xz
slixmpp-3eeef6b4b635aa99b01452798d8b68c1da687aad.zip
XEP-0054: fix component handling of vcard requests
Fetching the local vcard for the JID from which the stanza originates does not make sense.
Diffstat (limited to 'slixmpp/plugins/xep_0054')
-rw-r--r--slixmpp/plugins/xep_0054/vcard_temp.py2
1 files changed, 1 insertions, 1 deletions
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: