Mercurial > prosody-modules
diff mod_http_muc_log/mod_http_muc_log.lua @ 4987:8a8ec909ac20
mod_http_muc_log: Link to replied-to message using XEP-0461: Message Replies
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 12 Aug 2022 17:15:11 +0200 |
parents | 3bcefa9cf1ca |
children | b74d592df9e2 |
line wrap: on
line diff
--- 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 = {