Mercurial > prosody-modules
comparison mod_report_forward/mod_report_forward.lua @ 5864:b5a110544fd4
mod_report_forward: Include id on report submissions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Mar 2024 14:07:00 +0000 |
parents | fdff8cb54302 |
children | db5128d1a16c |
comparison
equal
deleted
inserted
replaced
5863:ca62f9984f4b | 5864:b5a110544fd4 |
---|---|
115 reporter_jid = reporter_jid; | 115 reporter_jid = reporter_jid; |
116 reported_jid = event.jid; | 116 reported_jid = event.jid; |
117 reported_message_time = dt.datetime(reported_message_time); | 117 reported_message_time = dt.datetime(reported_message_time); |
118 }); | 118 }); |
119 | 119 |
120 local message = st.message({ from = module.host }) | 120 local message = st.message({ from = module.host, id = new_id() }) |
121 :text_tag("body", body_text) | 121 :text_tag("body", body_text) |
122 :add_child(report); | 122 :add_child(report); |
123 | 123 |
124 if reported_message then | 124 if reported_message then |
125 reported_message.attr.xmlns = "jabber:client"; | 125 reported_message.attr.xmlns = "jabber:client"; |