Software /
code /
prosody-modules
Changeset
2833:4f9466be7b46
mod_mam_muc: Add comment describing stripping of <x> tag in results
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 18 Nov 2017 00:47:44 +0100 |
parents | 2832:15a9d508c5f7 |
children | 2834:3fb5f173f213 |
files | mod_mam_muc/mod_mam_muc.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <x> 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