aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-09-28 20:00:39 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-09-28 20:00:39 +0200
commit01e73988778bf20b8ff5ded517459c7ead977009 (patch)
tree8bcce07591981c5398b052e76d9b9aa45810b2ca
parent272944f4dfb578ad6ed13c5d323cad4c74f3e5d1 (diff)
downloadprosody-01e73988778bf20b8ff5ded517459c7ead977009.tar.gz
prosody-01e73988778bf20b8ff5ded517459c7ead977009.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.lua5
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