# HG changeset patch # User Kim Alvefur # Date 1637767640 -3600 # Node ID 9084588c73ae7bbbb89cbe652fcadc9645618289 # Parent df2246b15075abbe0c103fc95e20dc8ff79d1e27 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. diff -r df2246b15075 -r 9084588c73ae mod_muc_hide_media/mod_muc_hide_media.lua --- 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);