plugins/mod_pep.lua
changeset 10677 1a23a58ac84e
parent 10525 cbb2c3f8bb1d
parent 10676 657e61531b33
child 11382 b790df8f9448
equal deleted inserted replaced
10675:5e1384298e97 10677: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;