Software /
code /
prosody-modules
Comparison
mod_bookmarks2/mod_bookmarks2.lua @ 4835:60b2dbe032c0
mod_bookmarks2: Finally add the #compat-pep feature!
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 24 Dec 2021 18:50:29 +0100 |
parent | 4834:7ed2467c9bb5 |
child | 4837:1f1acb7f3c10 |
comparison
equal
deleted
inserted
replaced
4834:7ed2467c9bb5 | 4835:60b2dbe032c0 |
---|---|
26 end | 26 end |
27 | 27 |
28 module:hook("account-disco-info", function (event) | 28 module:hook("account-disco-info", function (event) |
29 -- This Time it’s Serious! | 29 -- This Time it’s Serious! |
30 event.reply:tag("feature", { var = namespace.."#compat" }):up(); | 30 event.reply:tag("feature", { var = namespace.."#compat" }):up(); |
31 event.reply:tag("feature", { var = namespace.."#compat-pep" }):up(); | |
31 end); | 32 end); |
32 | 33 |
33 local function generate_legacy_storage(items) | 34 local function generate_legacy_storage(items) |
34 local storage = st.stanza("storage", { xmlns = "storage:bookmarks" }); | 35 local storage = st.stanza("storage", { xmlns = "storage:bookmarks" }); |
35 for _, item_id in ipairs(items) do | 36 for _, item_id in ipairs(items) do |