comparison mod_cloud_notify/mod_cloud_notify.lua @ 2046:980e5f5bd62c

mod_cloud_notify: put publish-options into <pubsub> not into <publish>
author Daniel Gultsch <daniel@gultsch.de>
date Sat, 13 Feb 2016 12:08:21 +0100
parents c84cf61ca0f3
children 49cc6a555dc7
comparison
equal deleted inserted replaced
2045:0aa8aa6cdb1b 2046:980e5f5bd62c
101 if include_body then 101 if include_body then
102 form_data["last-message-body"] = stanza:get_child_text("body"); 102 form_data["last-message-body"] = stanza:get_child_text("body");
103 end 103 end
104 push_publish:add_child(push_form:form(form_data)); 104 push_publish:add_child(push_form:form(form_data));
105 push_publish:up(); -- / publish 105 push_publish:up(); -- / publish
106 push_publish:up(); -- / pubsub
106 if push_info.options then 107 if push_info.options then
107 push_publish:tag("publish-options"):add_child(push_info.options); 108 push_publish:tag("publish-options"):add_child(push_info.options);
108 end 109 end
109 module:send(push_publish); 110 module:send(push_publish);
110 end 111 end