Software /
code /
prosody-modules
Comparison
mod_muc_moderation/mod_muc_moderation.lua @ 6162:a58fb6a05412
mod_muc_moderation: add missing id attribute to retract
author | nicoco <nicoco@nicoco.fr> |
---|---|
date | Fri, 24 Jan 2025 06:55:44 +0100 |
parent | 6156:bcad6baa4fc3 |
comparison
equal
deleted
inserted
replaced
6161:99860e1b817d | 6162:a58fb6a05412 |
---|---|
113 -- XEP 0425 v0.3.0 | 113 -- XEP 0425 v0.3.0 |
114 | 114 |
115 announcement:reset(); | 115 announcement:reset(); |
116 | 116 |
117 if retract then | 117 if retract then |
118 announcement:tag("retract", { xmlns = xmlns_retract_1 }) | 118 announcement:tag("retract", { xmlns = xmlns_retract_1; id = stanza_id }) |
119 :tag("moderated", { xmlns = xmlns_moderate_1 }) | 119 :tag("moderated", { xmlns = xmlns_moderate_1 }) |
120 :tag("occupant-id", { xmlns = xmlns_occupant_id; id = room:get_occupant_id(actor_occupant) }); | 120 :tag("occupant-id", { xmlns = xmlns_occupant_id; id = room:get_occupant_id(actor_occupant) }); |
121 if reason then | 121 if reason then |
122 announcement:up():up():text_tag("reason", reason); | 122 announcement:up():up():text_tag("reason", reason); |
123 end | 123 end |