# HG changeset patch # User Kim Alvefur # Date 1641598353 -3600 # Node ID 17cffaa78f48d6a3eb1ec4aeb89b1a6a0a49f0c1 # Parent ae59887399909b6db62d27fd5c68b32d713ae724 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 diff -r ae5988739990 -r 17cffaa78f48 plugins/mod_bookmarks.lua --- a/plugins/mod_bookmarks.lua Sat Jan 08 00:30:26 2022 +0100 +++ b/plugins/mod_bookmarks.lua Sat Jan 08 00:32:33 2022 +0100 @@ -414,7 +414,9 @@ 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);