Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 11723:3ead0967e04d
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 Jul 2021 19:53:21 +0200 |
parent | 11715:ddd6e21e58bf |
child | 11768:aa6ab07544c2 |
comparison
equal
deleted
inserted
replaced
11722:bc2d3f110a39 | 11723:3ead0967e04d |
---|---|
30 ["not-allowed"] = { "cancel", "not-allowed" }; | 30 ["not-allowed"] = { "cancel", "not-allowed" }; |
31 ["not-acceptable"] = { "modify", "not-acceptable" }; | 31 ["not-acceptable"] = { "modify", "not-acceptable" }; |
32 ["internal-server-error"] = { "wait", "internal-server-error" }; | 32 ["internal-server-error"] = { "wait", "internal-server-error" }; |
33 ["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" }; | 33 ["precondition-not-met"] = { "cancel", "conflict", nil, "precondition-not-met" }; |
34 ["invalid-item"] = { "modify", "bad-request", "invalid item" }; | 34 ["invalid-item"] = { "modify", "bad-request", "invalid item" }; |
35 ["persistent-items-unsupported"] = { "cancel", "feature-not-implemented", nil, "persistent-items" }; | |
35 }; | 36 }; |
36 local function pubsub_error_reply(stanza, error) | 37 local function pubsub_error_reply(stanza, error) |
37 local e = pubsub_errors[error]; | 38 local e = pubsub_errors[error]; |
38 if not e and errors.is_err(error) then | 39 if not e and errors.is_err(error) then |
39 e = { error.type, error.condition, error.text, error.pubsub_condition }; | 40 e = { error.type, error.condition, error.text, error.pubsub_condition }; |