Diff

mod_rest/jsonmap.lib.lua @ 4500:34c0f760f34a

mod_rest: Fix the OOB tag name which also differs in messages
author Kim Alvefur <zash@zash.se>
date Sun, 07 Mar 2021 01:30:42 +0100
parent 4499:8e644bf36627
child 4501:42f43f1383db
line wrap: on
line diff
--- 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;
 	};