Mercurial > prosody-modules
diff mod_pubsub_feeds/mod_pubsub_feeds.lua @ 3242:fe4194f10c75
mod_pubsub_feeds: Include pubsub namespace on wrapper item as required by mod_pubsub
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 20 Aug 2018 14:23:35 +0200 |
parents | 7c55f05327a2 |
children | 78b11fb291a2 |
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Mon Aug 20 12:39:37 2018 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Mon Aug 20 14:23:35 2018 +0200 @@ -118,7 +118,7 @@ -- FIXME Entries updated after publishing ... break; end - local xitem = st.stanza("item", { id = id }):add_child(entry); + local xitem = st.stanza("item", { id = id, xmlns = "http://jabber.org/protocol/pubsub" }):add_child(entry); -- TODO Put data from /feed into item/source --module:log("debug", "publishing to %s, id %s", node, id);