diff mod_rest/jsonmap.lib.lua @ 4732:607cac9b9393

mod_rest: Add recursive properties of XEP-0297 forwarded container Let's pray nobody invents a way to loop stanza references as well.
author Kim Alvefur <zash@zash.se>
date Wed, 27 Oct 2021 20:45:28 +0200
parents d71beacaec3b
children 755dd83e9214
line wrap: on
line diff
--- a/mod_rest/jsonmap.lib.lua	Wed Oct 27 20:43:17 2021 +0200
+++ b/mod_rest/jsonmap.lib.lua	Wed Oct 27 20:45:28 2021 +0200
@@ -16,6 +16,8 @@
 				copyto.properties[key] = prop;
 			end
 		end
+		schema.properties.message.properties.forwarded.properties.delay = schema._common.delay;
+		schema.properties.message.properties.forwarded.properties.message.properties = schema.properties.message.properties;
 		schema._common = nil;
 	end
 end