Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 11201:4ae1d485a9c6 0.11

mod_pubsub: Fix notification stanza type setting (fixes #1605)
author Kim Alvefur <zash@zash.se>
date Fri, 06 Nov 2020 13:49:40 +0100
parent 11199:6c7c50a4de32
child 11202:58492b4b85ea
comparison
equal deleted inserted replaced
11199:6c7c50a4de32 11201:4ae1d485a9c6
70 end 70 end
71 end 71 end
72 end 72 end
73 73
74 local id = new_id(); 74 local id = new_id();
75 local msg_type = node_obj and node_obj.config.message_type or "headline"; 75 local msg_type = node_obj and node_obj.config.notification_type or "headline";
76 local message = st.message({ from = module.host, type = msg_type, id = id }) 76 local message = st.message({ from = module.host, type = msg_type, id = id })
77 :tag("event", { xmlns = xmlns_pubsub_event }) 77 :tag("event", { xmlns = xmlns_pubsub_event })
78 :tag(kind, { node = node }) 78 :tag(kind, { node = node })
79 79
80 if item then 80 if item then