diff options
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/stanza/pubsub.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0060/stanza/pubsub.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py index ed3e57d4..139992e3 100644 --- a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py +++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py @@ -92,7 +92,8 @@ class Item(ElementBase): plugin_tag_map = {} def setPayload(self, value): - self.xml.append(value) + del self['payload'] + self.append(value) def getPayload(self): childs = self.xml.getchildren() |