diff options
author | Kim Alvefur <zash@zash.se> | 2017-09-03 12:42:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-09-03 12:42:25 +0200 |
commit | a9333c4f4badb127fca9beca6d1ad0b5933ecc0e (patch) | |
tree | 6bb31c337bb44a3cc22e303f4cf1c5dc19703efe /plugins/mod_mam/mod_mam.lua | |
parent | 0edbfe8c0b080bb5b5aa852a1162e7a2f7f49392 (diff) | |
download | prosody-a9333c4f4badb127fca9beca6d1ad0b5933ecc0e.tar.gz prosody-a9333c4f4badb127fca9beca6d1ad0b5933ecc0e.zip |
mod_mam: Clone stanza before stripping stanza id after carbons
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index a86697e8..cab3e95c 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -314,6 +314,7 @@ end local function strip_stanza_id(event) local strip_by = jid_bare(event.origin.full_jid); + event.stanza = st.clone(event.stanza); event.stanza:maptags(function(tag) if not ( tag.attr.xmlns == xmlns_st_id and tag.attr.by == strip_by ) then return tag; |