# HG changeset patch # User Matthew Wild # Date 1612528608 0 # Node ID 157fa4e535b0b808f043eaf4423d04386f08e7d2 # Parent b328ca621ba68c8bdfcf883b0bb64fcd533003e6 mod_cloud_notify: Fix nesting of push form (thanks ivucica/Andrzej) diff -r b328ca621ba6 -r 157fa4e535b0 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Thu Feb 04 20:49:02 2021 +0100 +++ b/mod_cloud_notify/mod_cloud_notify.lua Fri Feb 05 12:36:48 2021 +0000 @@ -337,12 +337,13 @@ form_data["last-message-body"] = tostring(dummy_body); end + push_notification_payload:add_child(push_form:form(form_data)); + 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") :add_child(push_notification_payload) - :add_child(push_form:form(form_data)) :up() :up();