comparison mod_cloud_notify/mod_cloud_notify.lua @ 4996:031e0dd90f4b

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.
author Matthew Wild <mwild1@gmail.com>
date Wed, 13 Jul 2022 11:15:43 +0100
parents da151f9af861
children d7ece68de066
comparison
equal deleted inserted replaced
4995:cb3de818ff55 4996:031e0dd90f4b
388 -- module:log("debug", "PUSH STANZA: %s", tostring(push_publish)); 388 -- module:log("debug", "PUSH STANZA: %s", tostring(push_publish));
389 local push_event = { 389 local push_event = {
390 notification_stanza = push_publish; 390 notification_stanza = push_publish;
391 notification_payload = push_notification_payload; 391 notification_payload = push_notification_payload;
392 original_stanza = stanza; 392 original_stanza = stanza;
393 node = node; 393 username = node;
394 push_info = push_info; 394 push_info = push_info;
395 push_summary = form_data; 395 push_summary = form_data;
396 important = not not form_data["last-message-body"]; 396 important = not not form_data["last-message-body"];
397 }; 397 };
398 398