From 9d8de7fc15afc39a666d2ac16b62a068dfc55112 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 24 Jul 2012 19:43:39 -0700 Subject: Fix publish vcard avatars, and PEP avatar metadata. --- sleekxmpp/plugins/xep_0153/vcard_avatar.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sleekxmpp/plugins/xep_0153') diff --git a/sleekxmpp/plugins/xep_0153/vcard_avatar.py b/sleekxmpp/plugins/xep_0153/vcard_avatar.py index 6b70e33e..bec792cb 100644 --- a/sleekxmpp/plugins/xep_0153/vcard_avatar.py +++ b/sleekxmpp/plugins/xep_0153/vcard_avatar.py @@ -75,6 +75,9 @@ class XEP_0153(BasePlugin): return stanza def _reset_hash(self, jid=None): + if jid is None: + jid = self.xmpp.boundjid + own_jid = (jid.bare == self.xmpp.boundjid.bare) if self.xmpp.is_component: own_jid = (jid.domain == self.xmpp.boundjid.domain) -- cgit v1.2.3