Changeset

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 3241:4b52cafd5811
children 3243:ca856a892719
files mod_pubsub_feeds/mod_pubsub_feeds.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);