aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-02-27 20:05:47 +0100
committerKim Alvefur <zash@zash.se>2020-02-27 20:05:47 +0100
commit6932bf9c38bddd91c031e6a1e4dd1cd66c5c323e (patch)
tree11856a961667be1b9af2f48dffd7b820584bf3fa /plugins/mod_pubsub/mod_pubsub.lua
parente1fe7117e725595ef08a540102d2f54a7dba7559 (diff)
parent62d90ddef1bf76035171dbb4ca79345979245de6 (diff)
downloadprosody-6932bf9c38bddd91c031e6a1e4dd1cd66c5c323e.tar.gz
prosody-6932bf9c38bddd91c031e6a1e4dd1cd66c5c323e.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index faf08cb2..4f901ba4 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -112,7 +112,7 @@ function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node
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