diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-24 19:43:39 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-24 19:43:39 -0700 |
commit | 9d8de7fc15afc39a666d2ac16b62a068dfc55112 (patch) | |
tree | 869ab78459c1fd72d6dde60f094bd9438c9ee0a3 /sleekxmpp/plugins/xep_0153 | |
parent | 70883086b7b5c290f220357ba920db504b926008 (diff) | |
download | slixmpp-9d8de7fc15afc39a666d2ac16b62a068dfc55112.tar.gz slixmpp-9d8de7fc15afc39a666d2ac16b62a068dfc55112.tar.bz2 slixmpp-9d8de7fc15afc39a666d2ac16b62a068dfc55112.tar.xz slixmpp-9d8de7fc15afc39a666d2ac16b62a068dfc55112.zip |
Fix publish vcard avatars, and PEP avatar metadata.
Diffstat (limited to 'sleekxmpp/plugins/xep_0153')
-rw-r--r-- | sleekxmpp/plugins/xep_0153/vcard_avatar.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |