# HG changeset patch # User Kim Alvefur # Date 1660317311 -7200 # Node ID 8a8ec909ac20f19d3283323954b011b644381a7c # Parent 3bcefa9cf1ca411e966269c70357f51311b8b3cc mod_http_muc_log: Link to replied-to message using XEP-0461: Message Replies diff -r 3bcefa9cf1ca -r 8a8ec909ac20 mod_http_muc_log/mod_http_muc_log.lua --- a/mod_http_muc_log/mod_http_muc_log.lua Fri Aug 12 17:14:43 2022 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Fri Aug 12 17:15:11 2022 +0200 @@ -388,6 +388,9 @@ end end + -- XEP-0461: Message Replies + local reply = item:get_child("reply", "urn:xmpp:reply:0"); + if body or verb or oob then local line = { id = item.attr.id, @@ -401,6 +404,7 @@ st_name = item.name; st_type = item.attr.type; edit = edit; + reply = reply and reply.attr.id; }; if oob then line.oob = { diff -r 3bcefa9cf1ca -r 8a8ec909ac20 mod_http_muc_log/res/http_muc_log.html --- a/mod_http_muc_log/res/http_muc_log.html Fri Aug 12 17:14:43 2022 +0200 +++ b/mod_http_muc_log/res/http_muc_log.html Fri Aug 12 17:15:11 2022 +0200 @@ -114,7 +114,7 @@ {item.nick} {item.verb?} -{item.edited&}{item.body?}{item.edited& }{item.edit& } +{item.edited&}{item.body?}{item.edited& }{item.edit& }{item.reply& } {item.reactions%{idx} {item}} {item.oob.url&
{item.oob.desc?}
{item.oob.desc?}
} }