aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.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_pep.lua
parent26847e013082876eca1c274eeca00e2cbaada12e (diff)
parent042b5142356b638d6dcfb36f61d5451b4e8659da (diff)
downloadprosody-77a9f61e12742134ddfd845615c20932d5192a41.tar.gz
prosody-77a9f61e12742134ddfd845615c20932d5192a41.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 7110649f..db4fdc87 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -52,7 +52,7 @@ function module.restore(data)
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