equal
deleted
inserted
replaced
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; |