Mercurial > prosody-hg
diff plugins/mod_pubsub/mod_pubsub.lua @ 10673:1a23a58ac84e
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 27 Feb 2020 20:05:47 +0100 |
| parents | d7cae7187943 657e61531b33 |
| children | 8a29e7206917 |
line wrap: on
line diff
--- 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
