# HG changeset patch # User Emmanuel Gil Peyrot # Date 1640526695 -3600 # Node ID fd2e48d4ac94c746f17eb835e077a60ffa4e5b3b # Parent 1f1acb7f3c10066dfa0097388dea3a102951e5c5 mod_bookmarks2: Advertise XEP-0049 support In the case mod_private isn’t loaded, some clients (like poezio) won’t even attempt to use Private XML Storage unless this feature is advertised. This is on the domain JID and not on the account JID! diff -r 1f1acb7f3c10 -r fd2e48d4ac94 mod_bookmarks2/mod_bookmarks2.lua --- a/mod_bookmarks2/mod_bookmarks2.lua Sun Dec 26 14:51:02 2021 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Sun Dec 26 14:51:35 2021 +0100 @@ -33,6 +33,10 @@ event.reply:tag("feature", { var = namespace.."#compat-pep" }):up(); end); +-- This must be declared on the domain JID, not the account JID. Note that +-- this isn’t defined in the XEP. +module:add_feature(namespace_private); + local function generate_legacy_storage(items) local storage = st.stanza("storage", { xmlns = namespace_legacy }); for _, item_id in ipairs(items) do