Software /
code /
prosody-modules
Comparison
mod_rest/jsonmap.lib.lua @ 4501:42f43f1383db
mod_rest: Fix tag name in parsing of OOB payloads
... and there too
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 Mar 2021 01:35:43 +0100 |
parent | 4500:34c0f760f34a |
child | 4518:073f5397c1d2 |
comparison
equal
deleted
inserted
replaced
4500:34c0f760f34a | 4501:42f43f1383db |
---|---|
226 -- else .. missing required attribute | 226 -- else .. missing required attribute |
227 end; | 227 end; |
228 }; | 228 }; |
229 | 229 |
230 -- XEP-0066: Out of Band Data | 230 -- XEP-0066: Out of Band Data |
231 oob_url = { type = "func", xmlns = "jabber:x:oob", tagname = "query", | 231 oob_url = { type = "func", xmlns = "jabber:x:oob", tagname = "x", |
232 -- XXX namespace depends on whether it's in an iq or message stanza | 232 -- XXX namespace depends on whether it's in an iq or message stanza |
233 st2json = function (s) | 233 st2json = function (s) |
234 return s:get_child_text("url"); | 234 return s:get_child_text("url"); |
235 end; | 235 end; |
236 json2st = function (s) | 236 json2st = function (s) |