Software /
code /
prosody-modules
Changeset
3912:1df4900bbd29
mod_rest: Fix another missing switch from array to map in json mapping
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Feb 2020 20:51:38 +0100 |
parents | 3911:064c32a5be7c |
children | 3913:21b30b30cc16 |
files | mod_rest/jsonmap.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/jsonmap.lib.lua Wed Feb 26 20:14:14 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Wed Feb 26 20:51:38 2020 +0100 @@ -292,7 +292,7 @@ cmd:text_tag("note", s.note.text, { type = s.note.type }); end if s.form then - cmd:add_child(dataform[5] (s.form)); + cmd:add_child(dataform.json2st(s.form)); elseif s.data then cmd:add_child(formdata(s.data)); end