aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-22 19:53:21 +0200
committerKim Alvefur <zash@zash.se>2021-07-22 19:53:21 +0200
commitdfed446a5adcb06b2e3af2181e57d17384cbbfaa (patch)
treef0ece126972003eb0bc7b4e96890fe345a8dd383 /plugins/mod_pubsub
parent1603e003b144d3ee98d30444665161ebb658cf3f (diff)
downloadprosody-dfed446a5adcb06b2e3af2181e57d17384cbbfaa.tar.gz
prosody-dfed446a5adcb06b2e3af2181e57d17384cbbfaa.zip
util.pubsub: Signal that 'persistent-items' is unsupported when disabled
XEP-0060 says that this the way to indicate that 'persistent-items' is unsupported, but doesn't explicitly say if it being disabled in the node configuration also counts as unsupported.
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index c750ecb8..3c38218a 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -32,6 +32,7 @@ local pubsub_errors = {
["internal-server-error"] = { "wait", "internal-server-error" };
["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" };
["invalid-item"] = { "modify", "bad-request", "invalid item" };
+ ["persistent-items-unsupported"] = { "cancel", "feature-not-implemented", nil, "persistent-items" };
};
local function pubsub_error_reply(stanza, error)
local e = pubsub_errors[error];