Mercurial > prosody-hg
diff plugins/mod_carbons.lua @ 14186:d975d280baec
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 25 May 2026 19:01:23 +0100 |
| parents | 54b30a374953 d79ef7a38fe8 |
| children |
line wrap: on
line diff
--- a/plugins/mod_carbons.lua Tue May 19 19:27:43 2026 +0100 +++ b/plugins/mod_carbons.lua Mon May 25 19:01:23 2026 +0100 @@ -141,7 +141,7 @@ -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP local copy = st.clone(stanza); if c2s and not orig_to then - stanza.attr.to = bare_from; + copy.attr.to = bare_from; end copy.attr.xmlns = "jabber:client"; carbon = st.message{ from = bare_jid, type = orig_type, }
