Changeset

4986:3bcefa9cf1ca

mod_http_muc_log: Mention relevant XEPs in comments
author Kim Alvefur <zash@zash.se>
date Fri, 12 Aug 2022 17:14:43 +0200
parents 4985:bade04ef0a22
children 4987:8a8ec909ac20
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Fri Aug 12 17:13:58 2022 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Fri Aug 12 17:14:43 2022 +0200
@@ -323,8 +323,11 @@
 		end
 
 		local nick = select(3, jid_split(item.attr.from));
+
+		-- XEP-0066: Out of Band Data
 		local oob = use_oob and item:get_child("x", "jabber:x:oob");
 
+		-- XEP-0425: Message Moderation
 		local moderated = item:get_child("moderated", "urn:xmpp:message-moderate:0");
 		if moderated then
 			local actor = moderated.attr.by;
@@ -340,6 +343,7 @@
 			body = moderation:get_child_text("reason") or "";
 		end
 
+		-- XEP-0308: Last Message Correction
 		local edit = item:find("{urn:xmpp:message-correct:0}replace/@id");
 		if edit then
 			local found = false;
@@ -359,6 +363,7 @@
 			end
 		end
 
+		-- XEP-0444: Message Reactions
 		local reactions = item:get_child("reactions", "urn:xmpp:reactions:0");
 		if reactions then
 			-- COMPAT Movim uses an @to attribute instead of the correct @id