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 | ff03ef384f75de6531479a49a7e6fc34199a4ac9 (patch) | |
tree | fc8d4344442e9a94949e701ede74f025ca4faddb | |
parent | 01e11dd7234ffb839fd1d546cd10c23b6c4a3f80 (diff) | |
download | prosody-ff03ef384f75de6531479a49a7e6fc34199a4ac9.tar.gz prosody-ff03ef384f75de6531479a49a7e6fc34199a4ac9.zip |
pubsub.lib: Add comment about tonumber hack
-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 |