diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-09-28 20:00:39 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-09-28 20:00:39 +0200 |
commit | f0907daf21057fa3b78d3e2d5dec379407de8c0c (patch) | |
tree | 8bcce07591981c5398b052e76d9b9aa45810b2ca | |
parent | 5bc702719e48c8b44d31f0ee65197357397d6f35 (diff) | |
download | prosody-f0907daf21057fa3b78d3e2d5dec379407de8c0c.tar.gz prosody-f0907daf21057fa3b78d3e2d5dec379407de8c0c.zip |
mod_pubsub: Remove the unwanted check for @notify on <purge/>.
This most likely was copied from the handling of <retract/>, where it actually
is required by the spec (XEP-0060 ?7.2.2.1), but this attribute doesn?t exist
for purge.
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index d59e3d85..a002fbe7 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -638,14 +638,13 @@ function handlers.set_retract(origin, stanza, retract, service) end function handlers.owner_set_purge(origin, stanza, purge, service) - local node, notify = purge.attr.node, purge.attr.notify; - notify = (notify == "1") or (notify == "true"); + local node = purge.attr.node; local reply; if not node then origin.send(pubsub_error_reply(stanza, "nodeid-required")); return true; end - local ok, ret = service:purge(node, stanza.attr.from, notify); + local ok, ret = service:purge(node, stanza.attr.from, true); if ok then reply = st.reply(stanza); else |