mod_bookmarks2/mod_bookmarks2.lua
changeset 4692 05725276fac0
parent 4644 d835cb7d2b47
child 4723 5a06c711649c
equal deleted inserted replaced
4691:41ddb782320c 4692:05725276fac0
    12 local namespace = "urn:xmpp:bookmarks:1";
    12 local namespace = "urn:xmpp:bookmarks:1";
    13 
    13 
    14 local default_options = {
    14 local default_options = {
    15 	["persist_items"] = true;
    15 	["persist_items"] = true;
    16 	-- This should be much higher, the XEP recommends 10000 but mod_pep rejects that.
    16 	-- This should be much higher, the XEP recommends 10000 but mod_pep rejects that.
    17 	["max_items"] = 255;
    17 	["max_items"] = module:get_option_number("pep_max_items", 256);
    18 	["send_last_published_item"] = "never";
    18 	["send_last_published_item"] = "never";
    19 	["access_model"] = "whitelist";
    19 	["access_model"] = "whitelist";
    20 };
    20 };
    21 
    21 
    22 module:hook("account-disco-info", function (event)
    22 module:hook("account-disco-info", function (event)