Changeset

1388:6e1facedcb74

mam_sql: Make forwarded a child element of result, rather than a sibling This makes mod_mam_sql conform to a newer version of XEP-313, which some clients require
author Rob Hoelz <rob@hoelz.ro>
date Tue, 22 Apr 2014 20:16:40 -0500
parents 1387:db2ff8f29472
children 1389:6bd9681d54b7
files mod_mam_sql/mod_mam_sql.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam_sql/mod_mam_sql.lua	Tue Apr 22 19:19:58 2014 +0200
+++ b/mod_mam_sql/mod_mam_sql.lua	Tue Apr 22 20:16:40 2014 -0500
@@ -308,7 +308,7 @@
 			--module:log("debug", "id is %s", id);
 
 			local fwd_st = st.message{ to = origin.full_jid }
-				:tag("result", { xmlns = xmlns_mam, queryid = qid, id = id }):up()
+				:tag("result", { xmlns = xmlns_mam, queryid = qid, id = id })
 				:tag("forwarded", { xmlns = xmlns_forward })
 					:tag("delay", { xmlns = xmlns_delay, stamp = timestamp(when) }):up();
 			orig_stanza = st.deserialize(deserialize(orig_stanza));