mod_rest: Fix the OOB tag name which also differs in messages
authorKim Alvefur <zash@zash.se>
Sun, 07 Mar 2021 01:30:42 +0100
changeset 4504 34c0f760f34a
parent 4503 8e644bf36627
child 4505 42f43f1383db
mod_rest: Fix the OOB tag name which also differs in messages
mod_rest/jsonmap.lib.lua
--- a/mod_rest/jsonmap.lib.lua	Sun Mar 07 01:26:20 2021 +0100
+++ b/mod_rest/jsonmap.lib.lua	Sun Mar 07 01:30:42 2021 +0100
@@ -235,7 +235,7 @@
 		end;
 		json2st = function (s)
 			if type(s) == "string" then
-				return st.stanza("query", { xmlns = "jabber:x:oob" }):text_tag("url", s);
+				return st.stanza("x", { xmlns = "jabber:x:oob" }):text_tag("url", s);
 			end
 		end;
 	};