Attached is a patch for issue #1924, fixing a compliance issue with RFC 6121.

While following the instructions on the website for creating patches,
`make test` gave the following output:

> GNUmakefile:2: config.unix: No such file or directory
> make: *** No rule to make target 'config.unix'.  Stop.

However, considering the trivial nature of the change, it's unlikely that it 
wouldn't pass any automated test.

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prosody-dev/9455582.CDJkKcVGEf%40the-dream-factory.
# HG changeset patch
# User Goot the ticklegoblin! <[email protected]>
# Date 1744925883 14400
#      Thu Apr 17 17:38:03 2025 -0400
# Node ID 5c32ff5e1203bf0f185dd6efeb81bcf3763eba69
# Parent  5611ce3bc54c24d442bfd627174e25372190c778
rostermanager: Signal pre-approval in roster pushes (fixes #1924)

diff -r 5611ce3bc54c -r 5c32ff5e1203 core/rostermanager.lua
--- a/core/rostermanager.lua	Wed Apr 16 18:27:46 2025 +0200
+++ b/core/rostermanager.lua	Thu Apr 17 17:38:03 2025 -0400
@@ -67,7 +67,7 @@
 		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

Reply via email to