aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua3
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