Diff

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
line wrap: on
line diff
--- a/mod_rest/jsonmap.lib.lua	Sun Mar 07 01:30:42 2021 +0100
+++ b/mod_rest/jsonmap.lib.lua	Sun Mar 07 01:35:43 2021 +0100
@@ -228,7 +228,7 @@
 	};
 
 	-- XEP-0066: Out of Band Data
-	oob_url = { type = "func", xmlns = "jabber:x:oob", tagname = "query",
+	oob_url = { type = "func", xmlns = "jabber:x:oob", tagname = "x",
 		-- XXX namespace depends on whether it's in an iq or message stanza
 		st2json = function (s)
 			return s:get_child_text("url");