aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-01-08 00:30:26 +0100
committerKim Alvefur <zash@zash.se>2022-01-08 00:30:26 +0100
commit1fa49be0635db61582caef47bb822865eef103d5 (patch)
treea5dc754905482da77c752b46058568a2a28af4a9 /plugins
parentd3bd9f9be5dd3322e16e7b6587e8941b803f3d11 (diff)
downloadprosody-1fa49be0635db61582caef47bb822865eef103d5.tar.gz
prosody-1fa49be0635db61582caef47bb822865eef103d5.zip
mod_bookmarks: Unhook PEP service objects on removal from cache
See 1dc00ca6ee9d
Diffstat (limited to 'plugins')
-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);