Software /
code /
prosody-modules
Diff
mod_mam_sql/mod_mam_sql.lua @ 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 |
parent | 1343:7dbde05b48a9 |
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));