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
commit77a9f61e12742134ddfd845615c20932d5192a41 (patch)
tree11856a961667be1b9af2f48dffd7b820584bf3fa /plugins/mod_pubsub/mod_pubsub.lua
parent26847e013082876eca1c274eeca00e2cbaada12e (diff)
parent042b5142356b638d6dcfb36f61d5451b4e8659da (diff)
downloadprosody-77a9f61e12742134ddfd845615c20932d5192a41.tar.gz
prosody-77a9f61e12742134ddfd845615c20932d5192a41.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