diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-06 08:39:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-06 08:39:46 +0100 |
commit | a5f83247c9e2c5f6aaddb7e93f5590418fe953bd (patch) | |
tree | fc8d4344442e9a94949e701ede74f025ca4faddb /plugins/mod_pubsub | |
parent | 921c592086596723725e4e74ad62dbd88cd8cfdd (diff) | |
download | prosody-a5f83247c9e2c5f6aaddb7e93f5590418fe953bd.tar.gz prosody-a5f83247c9e2c5f6aaddb7e93f5590418fe953bd.zip |
pubsub.lib: Add comment about tonumber hack
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 0119da14..03a2e390 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -152,6 +152,9 @@ local function config_from_xep0060(config, strict) for config_field, config_value in pairs(config) do local mapped_name = reverse_config_field_map[config_field]; if mapped_name then + -- FIXME: The intention is to add "subtype" support to + -- util.dataforms, which will remove the need for this + -- ugly hack if mapped_name == "max_items" then config_value = tonumber(config_value); end |