Software /
code /
prosody
Changeset
10276:4e4ce7400b39
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.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Sep 2019 20:00:39 +0200 |
parents | 10275:a247fa8df7df |
children | 10277:45a58127a3e5 |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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