mod_bookmarks: Add option for disabling upgrade of legacy bookmarks

Might be nice to reduce amount of things happening on connect once
all users has upgraded
0.12
Kim Alvefur 4 years ago
parent 1fa49be063
commit 475ab4aed2
  1. 4
      plugins/mod_bookmarks.lua

@ -414,7 +414,9 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function (event)
return on_publish_legacy_pep(event);
end
end, 1);
module:hook("resource-bind", migrate_legacy_bookmarks);
if module:get_option_boolean("upgrade_legacy_bookmarks", true) then
module:hook("resource-bind", migrate_legacy_bookmarks);
end
module:handle_items("pep-service", function (event)
local service = event.item.service;
module:hook_object_event(service.events, "node-created", on_node_created);

Loading…
Cancel
Save