diff plugins/mod_carbons.lua @ 14006:0d162ef4e0c1

mod_carbons: Copy archive-id (if any) from original to carbon stanzas
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Dec 2025 17:30:47 +0000
parents 74b9e05af71e
children 54b30a374953
line wrap: on
line diff
--- a/plugins/mod_carbons.lua	Sat Dec 06 17:30:05 2025 +0000
+++ b/plugins/mod_carbons.lua	Sat Dec 06 17:30:47 2025 +0000
@@ -144,6 +144,7 @@
 						:tag("forwarded", { xmlns = xmlns_forward })
 							:add_child(copy):reset();
 
+				carbon:set_meta("archive-id", stanza:get_meta("archive-id"));
 			end
 
 			carbon.attr.to = session.full_jid;