aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-09-03 12:42:25 +0200
committerKim Alvefur <zash@zash.se>2017-09-03 12:42:25 +0200
commit3d20f1f5912fe4bb966068f418e2d4e165d22289 (patch)
tree6bb31c337bb44a3cc22e303f4cf1c5dc19703efe /plugins/mod_mam
parente7a5de7a679f33738c3fcbfd7c10f750f25ad5a9 (diff)
downloadprosody-3d20f1f5912fe4bb966068f418e2d4e165d22289.tar.gz
prosody-3d20f1f5912fe4bb966068f418e2d4e165d22289.zip
mod_mam: Clone stanza before stripping stanza id after carbons
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua1
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;