mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_bookmarks: Unhook PEP service objects on removal from cache
See 1dc00ca6ee9d
This commit is contained in:
parent
d3bd9f9be5
commit
1fa49be063
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue