changeset 1924:c84cf61ca0f3

mod_cloud_notify: Wrap notification form in <item>
author Kim Alvefur <zash@zash.se>
date Fri, 23 Oct 2015 15:51:41 +0200
parents b030e46ec640
children 552faee596b7
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Fri Oct 23 15:51:09 2015 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Fri Oct 23 15:51:41 2015 +0200
@@ -90,7 +90,8 @@
 		local push_jid, push_node = push_info.jid, push_info.node;
 		local push_publish = st.iq({ to = push_jid, from = node .. "@" .. module.host, type = "set", id = "push" })
 			:tag("pubsub", { xmlns = "http://jabber.org/protocol/pubsub" })
-				:tag("publish", { node = push_node });
+				:tag("publish", { node = push_node })
+					:tag("item");
 		local form_data = {
 			["message-count"] = tostring(push_info.count);
 		};