changeset 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
parents 8e644bf36627
children 42f43f1383db
files mod_rest/jsonmap.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 	};