Comparison

mod_mam/mod_mam.lua @ 620:648e75c9d3e7

mod_mam: Add missing up()
author Kim Alvefur <zash@zash.se>
date Tue, 28 Feb 2012 14:36:41 +0100
parent 619:cade7dac6159
child 621:7bdd02056e2b
comparison
equal deleted inserted replaced
619:cade7dac6159 620:648e75c9d3e7
222 if shall_store(store_user, target_bare) then 222 if shall_store(store_user, target_bare) then
223 module:log("debug", "Archiving stanza: %s", stanza:top_tag()); 223 module:log("debug", "Archiving stanza: %s", stanza:top_tag());
224 224
225 -- Stamp "We archived this" on the message 225 -- Stamp "We archived this" on the message
226 local id = uuid(); 226 local id = uuid();
227 stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }); 227 stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up();
228 228
229 local when = time_now(); 229 local when = time_now();
230 -- And stash it 230 -- And stash it
231 dm_list_append(store_user, store_host, "archive2", { 231 dm_list_append(store_user, store_host, "archive2", {
232 -- WARNING This format may change. 232 -- WARNING This format may change.