mod_cloud_notify: Rename field in event for clarity ('node' is ambiguous here)
authorMatthew Wild <mwild1@gmail.com>
Wed, 13 Jul 2022 11:15:43 +0100
changeset 5000 031e0dd90f4b
parent 4999 cb3de818ff55
child 5001 1b5869c34026
mod_cloud_notify: Rename field in event for clarity ('node' is ambiguous here) ...because the push protocol is based on XEP-0060, and the 'node' can mean the identifier communicated to the push service.
mod_cloud_notify/mod_cloud_notify.lua
--- a/mod_cloud_notify/mod_cloud_notify.lua	Wed Jul 13 11:14:04 2022 +0100
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Wed Jul 13 11:15:43 2022 +0100
@@ -390,7 +390,7 @@
 				notification_stanza = push_publish;
 				notification_payload = push_notification_payload;
 				original_stanza = stanza;
-				node = node;
+				username = node;
 				push_info = push_info;
 				push_summary = form_data;
 				important = not not form_data["last-message-body"];