Software /
code /
prosody-modules
Comparison
mod_mam/mod_mam.lua @ 634:061584efe82f
mod_mam: Remove archived tag, as this was dropped from the submitted spec
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 19 Apr 2012 17:46:24 +0200 |
parent | 621:7bdd02056e2b |
child | 635:30be50d2537f |
comparison
equal
deleted
inserted
replaced
633:0d3174d5a1cc | 634:061584efe82f |
---|---|
220 assert(store_host == host, "This should not happen."); | 220 assert(store_host == host, "This should not happen."); |
221 | 221 |
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 | |
226 local id = uuid(); | 225 local id = uuid(); |
227 stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up(); | |
228 | |
229 local when = time_now(); | 226 local when = time_now(); |
230 -- And stash it | 227 -- And stash it |
231 dm_list_append(store_user, store_host, "archive2", { | 228 dm_list_append(store_user, store_host, "archive2", { |
232 -- WARNING This format may change. | 229 -- WARNING This format may change. |
233 id = id, | 230 id = id, |