Software /
code /
prosody-modules
Diff
mod_bookmarks/mod_bookmarks.lua @ 3231:f7777bc6e677
mod_bookmarks: Enforce publish_options since Prosody 249d90ff992e.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 18 Aug 2018 14:10:38 +0100 |
parent | 3230:ba0d444b64aa |
child | 3232:34e30a891bd3 |
line wrap: on
line diff
--- a/mod_bookmarks/mod_bookmarks.lua Sat Aug 18 14:04:40 2018 +0100 +++ b/mod_bookmarks/mod_bookmarks.lua Sat Aug 18 14:10:38 2018 +0100 @@ -42,7 +42,11 @@ local service = mod_pep.get_pep_service(username); local item = st.stanza("item", { xmlns = "http://jabber.org/protocol/pubsub", id = "current" }) :add_child(bookmarks); - return service:publish("storage:bookmarks", jid, "current", item); + local options = { + ["persist_items"] = true; + ["access_model"] = "whitelist"; + }; + return service:publish("storage:bookmarks", jid, "current", item, options); end -- Synchronise Private XML to PEP.