# HG changeset patch # User Kim Alvefur # Date 1510962464 -3600 # Node ID 4f9466be7b462118108f130f7e8db26d14637e64 # Parent 15a9d508c5f7025465c27cafc3393902d6bc6ba0 mod_mam_muc: Add comment describing stripping of tag in results diff -r 15a9d508c5f7 -r 4f9466be7b46 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Sat Nov 18 00:47:00 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Sat Nov 18 00:47:44 2017 +0100 @@ -252,6 +252,7 @@ :tag("forwarded", { xmlns = xmlns_forward }) :tag("delay", { xmlns = xmlns_delay, stamp = timestamp(when) }):up(); + -- Strip tag, containing the original senders JID, unless the room makes this public if room:get_whois() ~= "anyone" then item:maptags(function (tag) if tag.name == "x" and tag.attr.xmlns == xmlns_muc_user then