Mercurial > prosody-modules
comparison mod_cloud_notify/mod_cloud_notify.lua @ 4718:6e3254e13fb7
mod_cloud_notify: Fix traceback for clients without a stable client_id
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Oct 2021 11:05:13 +0100 |
parents | 8b3e91249cff |
children | 1da4b815d2fe |
comparison
equal
deleted
inserted
replaced
4717:f4f07891c4cc | 4718:6e3254e13fb7 |
---|---|
187 node = push_node; | 187 node = push_node; |
188 include_payload = include_payload; | 188 include_payload = include_payload; |
189 options = publish_options and st.preserialize(publish_options); | 189 options = publish_options and st.preserialize(publish_options); |
190 timestamp = os_time(); | 190 timestamp = os_time(); |
191 client_id = origin.client_id; | 191 client_id = origin.client_id; |
192 resource = not origin.client_id and origin.jid.resource(origin.full_jid) or nil; | 192 resource = not origin.client_id and origin.resource or nil; |
193 language = stanza.attr["xml:lang"]; | 193 language = stanza.attr["xml:lang"]; |
194 }; | 194 }; |
195 local allow_registration = module:fire_event("cloud_notify/registration", { | 195 local allow_registration = module:fire_event("cloud_notify/registration", { |
196 origin = origin, stanza = stanza, push_info = push_service; | 196 origin = origin, stanza = stanza, push_info = push_service; |
197 }); | 197 }); |