# HG changeset patch # User Matthew Wild # Date 1634553853 -3600 # Node ID ae3a129cc296e1cbf225a512767665690f1ea71c # Parent 48d7a5c16f2b9313ff151e64a795855ad6ee7b3d mod_cloud_notify: Record client id (or resource) and language during registration diff -r 48d7a5c16f2b -r ae3a129cc296 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Mon Oct 18 11:43:48 2021 +0100 +++ b/mod_cloud_notify/mod_cloud_notify.lua Mon Oct 18 11:44:13 2021 +0100 @@ -188,6 +188,11 @@ include_payload = include_payload; options = publish_options and st.preserialize(publish_options); timestamp = os_time(); + client = { + id = origin.client_id; + resource = not origin.client_id and origin.jid.resource(origin.full_jid) or nil; + language = stanza.attr["xml:lang"]; + }; }; local allow_registration = module:fire_event("cloud_notify/registration", { origin = origin, stanza = stanza, push_info = push_service;