# HG changeset patch # User Matthew Wild # Date 1779722402 -3600 # Node ID d79ef7a38fe86162e8da4083034c9ee1045c64ff # Parent 888d0c52db41f90725784851bdd20b6ff42d2fab mod_carbons: Fix 'to' attribute of stanzas to own account This code intended to clarify the 'to' address on the forwarded stanza, however it updated the original stanza instead of the clone. diff -r 888d0c52db41 -r d79ef7a38fe8 plugins/mod_carbons.lua --- a/plugins/mod_carbons.lua Mon May 25 16:14:56 2026 +0100 +++ b/plugins/mod_carbons.lua Mon May 25 16:20:02 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, }