Mercurial > prosody-modules
diff 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 |
line wrap: on
line diff
--- a/mod_report_forward/mod_report_forward.lua Tue Mar 12 10:56:41 2024 +0000 +++ b/mod_report_forward/mod_report_forward.lua Tue Mar 12 14:07:00 2024 +0000 @@ -117,7 +117,7 @@ reported_message_time = dt.datetime(reported_message_time); }); - local message = st.message({ from = module.host }) + local message = st.message({ from = module.host, id = new_id() }) :text_tag("body", body_text) :add_child(report);