mod_rest: Fix tag name in parsing of OOB payloads
authorKim Alvefur <zash@zash.se>
Sun, 07 Mar 2021 01:35:43 +0100
changeset 4505 42f43f1383db
parent 4504 34c0f760f34a
child 4506 48afaec5d1de
mod_rest: Fix tag name in parsing of OOB payloads ... and there too
mod_rest/jsonmap.lib.lua
--- 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");