Software /
code /
prosody-modules
Changeset
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 | 4788:9084588c73ae |
children | 4790:bb66e87a3604 |
files | mod_muc_restrict_media/mod_muc_restrict_media.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);