Software /
code /
prosody-modules
Changeset
1546:fff2858c554f
mod_mam_muc: Remove parsing of 'with' field in MAM form, we currently ignore it anyways
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Nov 2014 15:45:19 +0100 |
parents | 1545:a104a159697d |
children | 1547:e98c335c6554 |
files | mod_mam_muc/mod_mam_muc.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua Wed Nov 05 12:12:49 2014 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Sat Nov 08 15:45:19 2014 +0100 @@ -122,6 +122,7 @@ end); end +-- Note: We ignore the 'with' field as this is internally used for stanza types local query_form = dataform { { name = "FORM_TYPE"; type = "hidden"; value = xmlns_mam; }; { name = "with"; type = "jid-single"; }; @@ -159,7 +160,7 @@ local qid = query.attr.queryid; -- Search query parameters - local qwith, qstart, qend; + local qstart, qend; local form = query:get_child("x", "jabber:x:data"); if form then local err; @@ -167,8 +168,7 @@ if err then return origin.send(st.error_reply(stanza, "modify", "bad-request", select(2, next(err)))) end - qwith, qstart, qend = form["with"], form["start"], form["end"]; - qwith = qwith and jid_bare(qwith); -- dataforms does jidprep + qstart, qend = form["start"], form["end"]; end if qstart or qend then -- Validate timestamps