Commit ed696d06 authored by Philipp Hörist's avatar Philipp Hörist

PubSub: Don't expect IQ payload on publish

parent 57a3f73f
Pipeline #5181 passed with stages
in 41 seconds
......@@ -113,7 +113,8 @@ class PubSub:
jid = stanza.getFrom()
pubsub = stanza.getTag('pubsub', namespace=NS_PUBSUB)
if pubsub is None:
return raise_error(log.warning, stanza, 'stanza-malformed')
# XEP-0060: IQ payload is not mandatory on result
return PubSubPublishResult(jid, None, None)
publish = pubsub.getTag('publish')
if publish is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment