Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 10673:1a23a58ac84e
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 27 Feb 2020 20:05:47 +0100 |
| parents | cbb2c3f8bb1d 657e61531b33 |
| children | b790df8f9448 |
comparison
equal
deleted
inserted
replaced
| 10671:5e1384298e97 | 10673:1a23a58ac84e |
|---|---|
| 50 module:add_item("pep-service", { service = service, jid = user_bare }); | 50 module:add_item("pep-service", { service = service, jid = user_bare }); |
| 51 end | 51 end |
| 52 end | 52 end |
| 53 | 53 |
| 54 function is_item_stanza(item) | 54 function is_item_stanza(item) |
| 55 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; | 55 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item" and #item.tags == 1; |
| 56 end | 56 end |
| 57 | 57 |
| 58 function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor | 58 function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor |
| 59 if (new_config["max_items"] or 1) > max_max_items then | 59 if (new_config["max_items"] or 1) > max_max_items then |
| 60 return false; | 60 return false; |
