Software /
code /
prosody
Changeset
10673:1a23a58ac84e
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Feb 2020 20:05:47 +0100 |
parents | 10671:5e1384298e97 (current diff) 10672:657e61531b33 (diff) |
children | 10674:4459afac4d13 |
files | plugins/mod_pep.lua plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Thu Feb 27 19:50:30 2020 +0100 +++ b/plugins/mod_pep.lua Thu Feb 27 20:05:47 2020 +0100 @@ -52,7 +52,7 @@ end function is_item_stanza(item) - return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; + return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item" and #item.tags == 1; end function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor
--- a/plugins/mod_pubsub/mod_pubsub.lua Thu Feb 27 19:50:30 2020 +0100 +++ b/plugins/mod_pubsub/mod_pubsub.lua Thu Feb 27 20:05:47 2020 +0100 @@ -112,7 +112,7 @@ end function is_item_stanza(item) - return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; + return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item" and #item.tags == 1; end -- Compose a textual representation of Atom payloads