diff mod_muc_restrict_media/mod_muc_restrict_media.lua @ 4789:f06d04cfea7d

mod_muc_restrict_media: Fix disco#info field (thanks mirux) The default value for 'type' here is 'text-single', which does not serialize boolean values.
author Kim Alvefur <zash@zash.se>
date Wed, 24 Nov 2021 16:28:35 +0100
parents df2246b15075
children 1919cff763d4
line wrap: on
line diff
--- a/mod_muc_restrict_media/mod_muc_restrict_media.lua	Wed Nov 24 16:27:20 2021 +0100
+++ b/mod_muc_restrict_media/mod_muc_restrict_media.lua	Wed Nov 24 16:28:35 2021 +0100
@@ -43,6 +43,7 @@
 	local allow_unaffiliated_media = not should_restrict_media(room);
 	table.insert(form, {
 		name = "{xmpp:prosody.im}muc#roomconfig_unaffiliated_media",
+		type = "boolean",
 	});
 	formdata["{xmpp:prosody.im}muc#roomconfig_unaffiliated_media"] = allow_unaffiliated_media;
 end);