Mercurial > prosody-hg
changeset 14203:0ff587d7c742 13.0
rostermanager, mod_roster: Include 'approved' attribute in roster items (thanks singpolyma)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 11 Feb 2026 15:36:28 +0000 |
| parents | f156a90eff97 |
| children | b226d326223d a874c3f4570a |
| files | core/rostermanager.lua plugins/mod_roster.lua |
| diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/rostermanager.lua Wed May 27 14:56:59 2026 +0100 +++ b/core/rostermanager.lua Wed Feb 11 15:36:28 2026 +0000 @@ -67,7 +67,13 @@ local stanza = st.iq({type="set", id=new_id()}); stanza:tag("query", {xmlns = "jabber:iq:roster", ver = tostring(roster[false].version or "1") }); if item then - stanza:tag("item", {jid = jid, subscription = item.subscription, name = item.name, ask = item.ask}); + stanza:tag("item", { + jid = jid; + subscription = item.subscription; + name = item.name; + ask = item.ask; + approved = item.approved; + }); for group in pairs(item.groups) do stanza:tag("group"):text(group):up(); end
