diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py index 4967e1a..d2da8ec 100644 --- a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py +++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py @@ -247,7 +247,8 @@ class PublishOptions(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'publish-options' plugin_attrib = 'publish_options' - interfaces = set(('publish_options')) + interfaces = set(('publish_options',)) + is_extension = True plugin_attrib_map = {} plugin_tag_map = {} diff --git a/tests/test_stanza_xep_0060.py b/tests/test_stanza_xep_0060.py index 2427b78..5d5c843 100644 --- a/tests/test_stanza_xep_0060.py +++ b/tests/test_stanza_xep_0060.py @@ -213,6 +213,9 @@ class TestPubsubStanzas(SleekTest): item2['payload'] = payload2 iq['pubsub']['publish'].append(item) iq['pubsub']['publish'].append(item2) + form = xep_0004.Form() + form.addField('pubsub#description', ftype='text-single', value='this thing is awesome') + iq['pubsub']['publish_options'] = form self.check(iq, """ @@ -231,6 +234,13 @@ class TestPubsubStanzas(SleekTest): + + + + this thing is awesome + + + """)