# HG changeset patch # User Matthew Wild # Date 1293049460 0 # Node ID ee416b285802100b53e611bcdb24dffbc6f82a51 # Parent 415034fd38c2c441ce44c59f9eee6f03fdce7077 mod_group_bookmarks: Always ensure bookmarks are injected, even if the user has no bookmarks already stored diff -r 415034fd38c2 -r ee416b285802 mod_group_bookmarks/mod_group_bookmarks.lua --- a/mod_group_bookmarks/mod_group_bookmarks.lua Mon Dec 20 16:24:13 2010 +0000 +++ b/mod_group_bookmarks/mod_group_bookmarks.lua Wed Dec 22 20:24:20 2010 +0000 @@ -56,6 +56,9 @@ end if stanza.attr.type == "get" then local data = data and data[key]; + if (not data) and key == "storage:storage:bookmarks" then + data = st.stanza("storage", { xmlns = "storage:bookmarks" }); + end if data then data = st.deserialize(data); if key == "storage:storage:bookmarks" then