# HG changeset patch # User tmolitor # Date 1503594381 -7200 # Node ID 6b710a8bdf03cc21ea79ada40358aff6e1d2c0c6 # Parent 1d139e33c502617449c06daca621357c0e58149a mod_cloud_notify: Implement version 0.3 of XEP-0357 diff -r 1d139e33c502 -r 6b710a8bdf03 mod_cloud_notify/mod_cloud_notify.lua --- 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")