comparison 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
comparison
equal deleted inserted replaced
3241:4b52cafd5811 3242:fe4194f10c75
116 if items[id] then 116 if items[id] then
117 -- Assume that this existing means we've added all new items 117 -- Assume that this existing means we've added all new items
118 -- FIXME Entries updated after publishing ... 118 -- FIXME Entries updated after publishing ...
119 break; 119 break;
120 end 120 end
121 local xitem = st.stanza("item", { id = id }):add_child(entry); 121 local xitem = st.stanza("item", { id = id, xmlns = "http://jabber.org/protocol/pubsub" }):add_child(entry);
122 -- TODO Put data from /feed into item/source 122 -- TODO Put data from /feed into item/source
123 123
124 --module:log("debug", "publishing to %s, id %s", node, id); 124 --module:log("debug", "publishing to %s, id %s", node, id);
125 local ok, err = pubsub.service:publish(node, true, id, xitem); 125 local ok, err = pubsub.service:publish(node, true, id, xitem);
126 if not ok then 126 if not ok then