Mercurial > prosody-hg
comparison plugins/mod_muc_mam.lua @ 9552:87e25d352de3
mod_muc_mam: Fix missing form container element
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 25 Oct 2018 21:21:22 +0200 |
| parents | 23070882f3d4 |
| children | a44f562e01a5 3de80fc511ab |
comparison
equal
deleted
inserted
replaced
| 9551:7421379ba464 | 9552:87e25d352de3 |
|---|---|
| 96 }; | 96 }; |
| 97 | 97 |
| 98 -- Serve form | 98 -- Serve form |
| 99 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event) | 99 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event) |
| 100 local origin, stanza = event.origin, event.stanza; | 100 local origin, stanza = event.origin, event.stanza; |
| 101 origin.send(st.reply(stanza):add_child(query_form:form())); | 101 origin.send(st.reply(stanza):tag("query", { xmlns = xmlns_mam }):add_child(query_form:form())); |
| 102 return true; | 102 return true; |
| 103 end); | 103 end); |
| 104 | 104 |
| 105 -- Handle archive queries | 105 -- Handle archive queries |
| 106 module:hook("iq-set/bare/"..xmlns_mam..":query", function(event) | 106 module:hook("iq-set/bare/"..xmlns_mam..":query", function(event) |
