# HG changeset patch # User Emmanuel Gil Peyrot # Date 1569693639 -7200 # Node ID 4e4ce7400b3932e67326b476f27abebce5ac6cbb # Parent a247fa8df7dfbc8dd0cb50ffcc41d81f1c4752bf mod_pubsub: Remove the unwanted check for @notify on . This most likely was copied from the handling of , where it actually is required by the spec (XEP-0060 §7.2.2.1), but this attribute doesn’t exist for purge. diff -r a247fa8df7df -r 4e4ce7400b39 plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Sat Sep 28 18:24:28 2019 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sat Sep 28 20:00:39 2019 +0200 @@ -638,14 +638,13 @@ 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