# HG changeset patch # User Kim Alvefur # Date 1641598226 -3600 # Node ID ae59887399909b6db62d27fd5c68b32d713ae724 # Parent 760dd1fc3dc17d5e3f57bac5ceb2b18607dacf7d mod_bookmarks: Unhook PEP service objects on removal from cache See 1dc00ca6ee9d diff -r 760dd1fc3dc1 -r ae5988739990 plugins/mod_bookmarks.lua --- a/plugins/mod_bookmarks.lua Thu Jan 06 18:56:06 2022 +0100 +++ b/plugins/mod_bookmarks.lua Sat Jan 08 00:30:26 2022 +0100 @@ -418,4 +418,7 @@ 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);