Diff

mod_cloud_notify/mod_cloud_notify.lua @ 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
parent 2749:9756211fcbe3
child 2791:008cf272b7ea
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")