# HG changeset patch # User Kim Alvefur # Date 1445608269 -7200 # Node ID b030e46ec6408eb8a32a7bba0d1d3de73994ae68 # Parent e170b11b60b89b966cdf0f189d66419bca2674fa mod_cloud_notify: Send notification from bare user JID per http://xmpp.org/extensions/xep-0357.html#publishing diff -r e170b11b60b8 -r b030e46ec640 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Fri Oct 23 15:50:13 2015 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Fri Oct 23 15:51:09 2015 +0200 @@ -88,7 +88,7 @@ for _, push_info in pairs(user_push_services) do push_info.count = push_info.count + 1; local push_jid, push_node = push_info.jid, push_info.node; - local push_publish = st.iq({ to = push_jid, from = module.host, type = "set", id = "push" }) + 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 }); local form_data = {