Mercurial > prosody-hg
diff core/rostermanager.lua @ 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 | ead41e25ebc0 |
| children |
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
