Software /
code /
prosody-modules
Comparison
mod_rest/jsonmap.lib.lua @ 4733:755dd83e9214
mod_rest: Add JSON mapping of XEP-0313 archive result container
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 27 Oct 2021 20:54:54 +0200 |
parent | 4732:607cac9b9393 |
child | 4742:b7df2c61a144 |
comparison
equal
deleted
inserted
replaced
4732:607cac9b9393 | 4733:755dd83e9214 |
---|---|
14 for key, prop in pairs(schema._common) do | 14 for key, prop in pairs(schema._common) do |
15 for _, copyto in pairs(schema.properties) do | 15 for _, copyto in pairs(schema.properties) do |
16 copyto.properties[key] = prop; | 16 copyto.properties[key] = prop; |
17 end | 17 end |
18 end | 18 end |
19 schema.properties.message.properties.archive.properties.forward = schema.properties.message.properties.forwarded; | |
19 schema.properties.message.properties.forwarded.properties.delay = schema._common.delay; | 20 schema.properties.message.properties.forwarded.properties.delay = schema._common.delay; |
20 schema.properties.message.properties.forwarded.properties.message.properties = schema.properties.message.properties; | 21 schema.properties.message.properties.forwarded.properties.message.properties = schema.properties.message.properties; |
21 schema._common = nil; | 22 schema._common = nil; |
22 end | 23 end |
23 end | 24 end |