aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-18 15:26:35 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-18 15:26:35 +0100
commit7fdb4cf5e437701686ec32a6a4c4a79e6909f0a7 (patch)
treec9a992a40d242d9eeaa6584be75618712ccd11d7 /plugins/mod_pubsub
parent84a825533fefa3df91d2f0d61870375862d4ea1e (diff)
downloadprosody-7fdb4cf5e437701686ec32a6a4c4a79e6909f0a7.tar.gz
prosody-7fdb4cf5e437701686ec32a6a4c4a79e6909f0a7.zip
util.pubsub, pubsub.lib: Improve error on attempt to publish invalid item
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 d1231183..d8d0506d 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -30,6 +30,7 @@ local pubsub_errors = {
["not-acceptable"] = { "modify", "not-acceptable" };
["internal-server-error"] = { "wait", "internal-server-error" };
["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" };
+ ["invalid-item"] = { "modify", "bad-request", "invalid item" };
};
local function pubsub_error_reply(stanza, error)
local e = pubsub_errors[error];