equal
deleted
inserted
replaced
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. |