aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bookmarks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_bookmarks.lua')
-rw-r--r--plugins/mod_bookmarks.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_bookmarks.lua b/plugins/mod_bookmarks.lua
index 718fc018..141cab38 100644
--- a/plugins/mod_bookmarks.lua
+++ b/plugins/mod_bookmarks.lua
@@ -418,4 +418,7 @@ module:hook("resource-bind", migrate_legacy_bookmarks);
module:handle_items("pep-service", function (event)
local service = event.item.service;
module:hook_object_event(service.events, "node-created", on_node_created);
-end, function () end, true);
+end, function (event)
+ local service = event.item.service;
+ module:unhook_object_event(service.events, "node-created", on_node_created);
+end, true);