Mercurial > prosody-modules
changeset 4788:9084588c73ae
mod_muc_hide_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:27:20 +0100 |
parents | df2246b15075 |
children | f06d04cfea7d |
files | mod_muc_hide_media/mod_muc_hide_media.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_hide_media/mod_muc_hide_media.lua Tue Nov 23 17:14:25 2021 +0000 +++ b/mod_muc_hide_media/mod_muc_hide_media.lua Wed Nov 24 16:27:20 2021 +0100 @@ -43,6 +43,7 @@ local display_media = not should_hide_media(room); table.insert(form, { name = "{xmpp:prosody.im}muc#roomconfig_display_media", + type = "boolean", }); formdata["{xmpp:prosody.im}muc#roomconfig_display_media"] = display_media; end);