Changeset

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
parents 11199:6c7c50a4de32
children 11202:58492b4b85ea 11205:9d1e21c23784
files plugins/mod_pubsub/mod_pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Thu Nov 05 22:27:17 2020 +0100
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Fri Nov 06 13:49:40 2020 +0100
@@ -72,7 +72,7 @@
 	end
 
 	local id = new_id();
-	local msg_type = node_obj and node_obj.config.message_type or "headline";
+	local msg_type = node_obj and node_obj.config.notification_type or "headline";
 	local message = st.message({ from = module.host, type = msg_type, id = id })
 		:tag("event", { xmlns = xmlns_pubsub_event })
 			:tag(kind, { node = node })