changeset 2751:6b710a8bdf03

mod_cloud_notify: Implement version 0.3 of XEP-0357
author tmolitor <thilo@eightysoft.de>
date Thu, 24 Aug 2017 19:06:21 +0200
parents 1d139e33c502
children 77adb2b5c847 d1aa5fc005f7
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Wed Aug 23 14:31:55 2017 -0500
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Aug 24 19:06:21 2017 +0200
@@ -250,7 +250,7 @@
 			push_store:set_identifier(node, push_identifier, push_info);
 			-- construct push stanza
 			local stanza_id = hashes.sha256(push_identifier, true);
-			local push_publish = st.iq({ to = push_info.jid, from = node .. "@" .. module.host, type = "set", id = stanza_id })
+			local push_publish = st.iq({ to = push_info.jid, from = module.host, type = "set", id = stanza_id })
 				:tag("pubsub", { xmlns = "http://jabber.org/protocol/pubsub" })
 					:tag("publish", { node = push_info.node })
 						:tag("item")