Kim Alvefur · hg.prosody.im

Community Modules


changeset 30743ae1fe1a

mod_map: Update for new API in prosody 1e2b444acb72

author
Kim Alvefur
date
parents
d252c8573f33
children
95f7291db669
topic
files

1 files changed, 1 insertions(+), 1 deletions(-)

↓ Download patch

--- a/mod_map/mod_map.lua	Fri Aug 23 00:19:46 2019 +0200
+++ b/mod_map/mod_map.lua	Fri Aug 23 01:08:12 2019 +0200
@@ -54,7 +54,7 @@
 
 	local reply = st.reply(stanza);
 	reply:tag("summary", { xmlns = "xmpp:prosody.im/mod_map" });
-	for jid, count in pairs(summary) do
+	for jid, count in pairs(summary.counts) do
 		reply:tag("item", { jid = jid });
 		if type(count) == "number" then
 			reply:text_tag("count", ("%d"):format(count));

Read the original on hg.prosody.im ↗