# HG changeset patch # User Emmanuel Gil Peyrot # Date 1534868311 -3600 # Node ID cf8ad9fd7f15d0a7dbd78a603ccb4420d263cab4 # Parent eec70a863d167c565dba8c001127280d3b30f47c mod_bookmarks: Use the new item-published/ event. diff -r eec70a863d16 -r cf8ad9fd7f15 mod_bookmarks/mod_bookmarks.lua --- a/mod_bookmarks/mod_bookmarks.lua Tue Aug 21 11:01:46 2018 +0200 +++ b/mod_bookmarks/mod_bookmarks.lua Tue Aug 21 17:18:31 2018 +0100 @@ -114,12 +114,10 @@ end local function on_item_published(event) - if event.node == "storage:bookmarks" then - module:fire_event("bookmarks/updated", event); - end + module:fire_event("bookmarks/updated", event); end module:hook("iq-get/bare/jabber:iq:private:query", on_retrieve_private_xml); module:hook("iq-set/bare/jabber:iq:private:query", on_publish_private_xml); module:hook("resource-bind", on_resource_bind); -module:hook("item-published", on_item_published); +module:hook("item-published/storage:bookmarks", on_item_published);